-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Add font recycling especially for CJK] Possible memory leak (related to fonts?) #93
Comments
With dumpNumberOfInstances I get:
|
Tested with refc/refc+useMalloc/orc/orc+useMalloc on latest devel, all show the same behaviour. Not sure if this is a Nim regression or fidget (or typography) bug |
I don't clean up letter after they are rasterized even if you remove it from text. This is usually not a problem for alphabet based languages but could be an issue for CJK. I don't have a good solution for this yet. |
When trying padofcode/padoftext examples I noticed that when you paste a lot of text, and then remove it, the memory usage will forever stay much higher.
Steps:
Run padofcode/padoftext
Paste a big amount of text (RAM usage goes higher)
Remove all text -> RAM usage is still the same
The text was updated successfully, but these errors were encountered: