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

Optional caching of JSON nodes #21

Closed
wants to merge 1 commit into from
Closed

Conversation

phraktle
Copy link
Contributor

@phraktle phraktle commented Jan 1, 2016

Defaults to no caching. A simple bounded cache implementation using ConcurrentHashMap is provided (CHMCache). When caching is applied, ContainerNodes are always deep-copied. This way the cached instances remain immutable.

Even with a very modest cache size, this yields a good hit-rate and a major speedup (~3x on the low-level benchmark, ~2x on the high-level API) along with a significant reduction in object churn (refs #13).

Defaults to no caching. A simple bounded cache implementation using ConcurrentHashMap is provided.
@oschwald
Copy link
Member

oschwald commented Jan 1, 2016

I merged this via the command line.

@oschwald oschwald closed this Jan 1, 2016
@phraktle phraktle deleted the caching branch January 1, 2016 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants