-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Ensure that the Cmd
/Name
/Ref
caches are cleared when running other cleanup
code
#10863
Ensure that the Cmd
/Name
/Ref
caches are cleared when running other cleanup
code
#10863
Conversation
…her `cleanup` code The purpose of these caches is to reduce peak memory usage, by only ever having *a single* instance of a particular object. However, as-is these caches are never cleared and they will thus remain until the worker is destroyed. This could very well have a negative effect on total memory usage, particularly for large/long documents, hence it seems to make sense to clear out these caches together with various other ones.
bcffe7a
to
5e045bc
Compare
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/74a979464aee207/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/74a979464aee207/output.txt Total script time: 2.08 mins Published |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/6d69f825b33a92c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/1da7d9f72858ffd/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/6d69f825b33a92c/output.txt Total script time: 17.74 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/1da7d9f72858ffd/output.txt Total script time: 25.65 mins
|
Thank you! |
The purpose of these caches is to reduce peak memory usage, by only ever having a single instance of a particular object.
However, as-is these caches are never cleared and they will thus remain until the worker is destroyed. This could very well have a negative effect on total memory usage, particularly for large/long documents, hence it seems to make sense to clear out these caches together with various other ones.