-
Notifications
You must be signed in to change notification settings - Fork 56
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
Optimize memory usage of liblcf #253
Comments
|
Here is some data on the breakup per section of the database. I generated this by hacking liblcf to only load a single database chunk.
|
If I remove On my amd64 linux machine, From this we can conclude that Furthermore, C++11 Some kind of replacement for |
Here is a WIP branch that implements an https://github.com/fmatthew5876/liblcf/tree/string With this, With this branch:
|
One more test before bed. Here is liblcf master build with
Interestingly, using this string everywhere actually increases memory usage compared to using it only in |
Interesting savings you have there just by replacing one class, wow. As you have my test set of game files now: |
liblcf uses a lot of memory.
I wrote a program that reads
RPG_RT.ldb
and then exits. I measured it's memory usage with valgrind massif.Here are some quick stats:
The text was updated successfully, but these errors were encountered: