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

Alter GC settings to speed up Inventory loads? #217

Open
bskinn opened this issue Jan 4, 2022 · 0 comments
Open

Alter GC settings to speed up Inventory loads? #217

bskinn opened this issue Jan 4, 2022 · 0 comments

Comments

@bskinn
Copy link
Owner

bskinn commented Jan 4, 2022

Per Python Bytes Episode 264, GC gets triggered after 700 non-transient memory allocations.

Thus, given that each, e.g., DataObjStr object has a reference cycle within itself (dos.as_bytes.as_str), every ~350 items in an objects.inv will trigger a GC, which is likely useless since the Inventory will want all of those objects in a durable fashion.

Performance details may change if #216 happens.

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