WebStorage vs Dictionary: Which is faster?

Get help using Construct 2

Post » Fri Aug 09, 2013 12:02 am

Hi,

I was wondering, between WebStorage and Dictionary, which one would be faster to manipulate?

If you have need for a lot of keys (say, 100), would it be wiser to import all the WebStorage keys into a Dictionary and then do manupulations like find, replace, etc, or is it just as fast to do the manupulations directly on the WebStorage object?
B
11
S
4
G
2
Posts: 20
Reputation: 1,412

Post » Fri Aug 09, 2013 12:25 am

Apart from what is listed in the performance tips manual article, there is not much more.

In your case you might also want to read the blog article optimisation don't waste your time and just go with whatever you are more comfortable with.

It is more a matter of comfort in coding/using the plugins rather than true performance.

So to answer your question, none is faster, all that matters is how comfortable you are using them.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306

Post » Fri Aug 09, 2013 3:18 am

Kyatric,

Great response, great link and a great summary of the link. Very helpful. Thanks a lot man!
B
11
S
4
G
2
Posts: 20
Reputation: 1,412


Return to How do I....?

Who is online

Users browsing this forum: donstathemonsta and 32 guests