• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

is javascripts fast enough for what I want to use it for

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to build a small page that will basically do the following task. It will have all 50 states on top, whenever I click on a state it will bring up all the "starbucks" (just for example) in that state, on a left-column navigation bar (about 1/4 of the page), and then on the right will be the address and some additional information of the "starbucks" that I chose.
Now I chose starbucks, because they have a lot of stores. So lets pretend I have as many stores, or maybe around 2/3 as many stores. All I want to store is the name, address, hours, and manager. But there will be about 1000+ stores. If I stored all that information on a javascript would that run relatively well, or very poor.
It is all just text after all. I am not sure if the script is loaded into the JVM, or how javascripts are handled.
If somebody has a better idea of how to store all this information and use it faster than my implementation, I'm all ears. But everything I do has to be client-side. The page I am designing is sitting on somebody's computer in an intranet. No web-server capabilities.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should not be that slow, but there will be a noticable performance drop when it is trying to load all of the information.
Are you going to be using multidemensional arrays to do this?

Eric
 
Wilson Mui
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think arrays of Store objects. I am not sure how javascript is handling the Objects in the backend. But Array of objects is no breeze in the pants either. Do you think there is a better way to store this?
I asked about XML the other day, but I am not sure I want to introduce another file into the mix. It may be confusing for somebody who is not experienced to update the information. I know, I know XML was designed for improved data storage, but transparency is very important also.
 
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic