"Dictionary" x "LocalStorage"

Discussion and feedback on Construct 2

Post » Thu Dec 13, 2012 8:40 pm

Hi,

I like to know if somebody knows if there are, in case, what is, the difference in using a "Dictionary" object or a "LocalStorage" object to store variables in runtime. I know than "LocalStorage" can persist the data, but that is not the point. The question is only to store and retrieve data in runtime. For example, if the webapp is closed, by energy fault, the "LocalStorage" data is preserved?

Thanks
B
90
S
5
G
8
Posts: 165
Reputation: 7,648

Post » Fri Dec 14, 2012 1:02 pm

@Ashley

Could you say something about?
B
90
S
5
G
8
Posts: 165
Reputation: 7,648

Post » Sat Dec 15, 2012 12:01 am

Pretty sure local storage is written to hard drive whereas dictionary is just ram, so its a lot better to use dictionary I'd imagine (since reading/writing from hard drive isn't great to do all the time since ram is more efficient.) That's my understanding.alspal2012-12-15 02:12:40
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Dec 15, 2012 10:51 am

Yes @alspal you are right!

Thanks
B
90
S
5
G
8
Posts: 165
Reputation: 7,648


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests