mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Turns out that the on-the-fly conversion from const char* (the KVP_OPTION_PATH constants) to std::string with their immediate deletion afterwards is a quite costly operation. Avoiding this is surprisingly easy: Just keep local std::string objects at hand, and they don't have to be created and deleted anymore. The more optimized solution might be to turn the std::vector<std::string> into a std::vector<GQuark>, but this commit at least improves the picture for now.