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

Update reformat.py, fix the memory leaking if running backend as server mode #263

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

neoyxm
Copy link
Contributor

@neoyxm neoyxm commented Nov 14, 2023

if running the backend many many times as a part of server, the global var( _segmenter) in wordsegment module leads to memory leaking. So create a new local wordsegment var to avoid this issue.

if running the backend many many times as a part of server,  the global var( _segmenter) in wordsegment module leads to memory leaking. So create a new local wordsegment var to avoid this issue.
@neoyxm neoyxm changed the title Update reformat.py Update reformat.py, fix the memory leaking in running backend as server mode Nov 14, 2023
@neoyxm neoyxm changed the title Update reformat.py, fix the memory leaking in running backend as server mode Update reformat.py, fix the memory leaking if running backend as server mode Nov 14, 2023
Copy link
Owner

@YaoFANGUK YaoFANGUK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YaoFANGUK YaoFANGUK merged commit 8b43a97 into YaoFANGUK:main Nov 14, 2023
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

Successfully merging this pull request may close these issues.

2 participants