Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue of map #17

Open
weibel opened this issue Jun 18, 2014 · 1 comment
Open

Performance issue of map #17

weibel opened this issue Jun 18, 2014 · 1 comment

Comments

@weibel
Copy link

weibel commented Jun 18, 2014

I'm using Jastor for some large JSON and noticed processing was not so fast. It seems as [self map] is called a very large number of times inside initWithDictionary. Why not move the call out of the main loop?

@weibel
Copy link
Author

weibel commented Jun 19, 2014

I cloned the repo for working on caching the property maps.
Speedup of the map processing is from O(n*m) to O(1) as each map is only calculated once in the apps lifetime.
https://github.com/Vivino/jastor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant