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

Client side value caching #27

Closed
coni2k opened this issue May 22, 2015 · 1 comment
Closed

Client side value caching #27

coni2k opened this issue May 22, 2015 · 1 comment

Comments

@coni2k
Copy link
Contributor

coni2k commented May 22, 2015

Especially ElementItem - multiplier() method called too many times which makes it pretty slow, improve it. But then how to update the cache, events & properties etc.?

@coni2k
Copy link
Contributor Author

coni2k commented Jun 3, 2015

The values of the the following functions are now stored in local variables;
ResourcePool - resourcepoolrate()
ElementField - indexRting()
ElementItem - multiplier()
ElementCell - numericValue() & numericValueMultiplied()

When there's an update in userService updateX() methods, it raises an event and these functions values are getting updated manually.

It should be applied to more values but good enough at the moment.
Also, instead of raising & handling events with rootScope, it could be done directly by calling setX() methods, so we could control what to update and which order in a better way?

Also "All in One" sample is back but still very slow.

@coni2k coni2k closed this as completed Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant