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

Memory optimization #2193

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Memory optimization #2193

merged 2 commits into from
Nov 10, 2023

Conversation

jere344
Copy link
Contributor

@jere344 jere344 commented Nov 10, 2023

While profiling memory to find a memory leak I found out that surprisingly this concatenation was 6% of total memory usage. Replacing it with a .join optimized it to 1.5%.
Closing the image was also a smaller but significant improvement.

@dipu-bd
Copy link
Owner

dipu-bd commented Nov 10, 2023

Nice finding

@dipu-bd dipu-bd merged commit 3f4daa7 into dipu-bd:dev Nov 10, 2023
4 checks passed
@jere344 jere344 deleted the patch-1 branch November 10, 2023 20:32
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