forked from Gnucash/gnucash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve quickfill performance on huge registers
The recursive quickfill code had several expensive function calls that could be moved out of the recursion. In addition using qof's string cache would result in an expensive call to g_str_hash for each iteration, which quickly degraded performance on huge accounts. I have removed the use of qof's string cache from quickfill which considerably improves performance of opening the register for a huge account at the expense of slightly more memory overhead. For example I saw register load time reduce from 75 seconds to 2 seconds, while using 20kb more memory.
- Loading branch information
Showing
1 changed file
with
17 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters