JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 6th, 2013, 08:18 PM
harrjm harrjm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2011
Posts: 33 harrjm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 6 m 53 sec
Reputation Power: 2
Design help for memory limited application.

Its more of a question about how this works. I have a mobile based website, that being said the devices it targets will be limited on memory, too much and theyll crash.

I have the need for approximately 100 names and descriptions that will need to be accessible. I was thinking about making a hashmap of them to create something like:

thing("Person1", ID1)
thing("Person2", ID2)
(obviously really bad psuedocode)

But what Im asking is, would an approach like this be heavily memory consuming? If so would there be a better approach?

I know this is rather confusing I cant explain this very well but thanks for any help.

Reply With Quote
  #2  
Old March 7th, 2013, 03:45 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,872 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 16 h 37 m 2 sec
Reputation Power: 2569
Is this for an app or a mobile website? Do you require help with Java or Javascript? HashMaps are a Java interface, which is why I am asking.
__________________
[PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

W3Fools - A W3Schools Intervention.

Reply With Quote
  #3  
Old March 7th, 2013, 11:44 AM
harrjm harrjm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2011
Posts: 33 harrjm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 6 m 53 sec
Reputation Power: 2
Quote:
Originally Posted by Winters
Is this for an app or a mobile website? Do you require help with Java or Javascript? HashMaps are a Java interface, which is why I am asking.


Its a mobile website with javascript, I was used HashMap in the wrong wording I just mean some sort of hashtable/dictionary/associative array type thing. Which I ended up using an associative array formatted like this.
var personArray=[
["Person1","first.png"],
["Person2","second.png"],
["Person3","third.png"],
["Person4","fourth.png"]]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Design help for memory limited application.

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap