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

pls provide examples and numbers in bytes for the memory usage meaning #93

Open
hiqsociety opened this issue Apr 5, 2023 · 0 comments

Comments

@hiqsociety
Copy link

  1. this statement doesnt really say a lot. what's inputJSON?

fastjson requires up to sizeof(Value) * len(inputJSON) bytes of memory for parsing inputJSON string. Limit the maximum size of the inputJSON before parsing it in order to limit the maximum memory usage.

  1. i would like to use fastjson as replacement for "very large map" (10 mil maybe?) of 1024bytes key and 64kb value is this advisable?
    how much memory will this take?

  2. if i add 10 mil 65kb items (key and value) and delete ALL 10 mil items, will the memory usage shrink? just curious.

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