Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Garbage Collection #9

Open
lukebarton opened this issue Nov 7, 2018 · 1 comment
Open

Garbage Collection #9

lukebarton opened this issue Nov 7, 2018 · 1 comment

Comments

@lukebarton
Copy link

lukebarton commented Nov 7, 2018

Inspecting the data map over multiple requests with the koa example reveals that the map is always growing in size, not just in keys, but the data is left lying around too. This will lead to larger and larger memory use over time, despite those continuations being finished. Is there anything that can be done about this? Using remove doesn't make the problem go away.

I'm guessing that since it's not possible to know if async functions have finished with the storage yet that we're forced to leave it lying around?

@vicanso
Copy link
Owner

vicanso commented Nov 8, 2018

I have tested gc before and it was no problem. Can you show me the testing codes for me to have a try?

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

No branches or pull requests

2 participants