mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Performance Enhancements
- Nibbler: Now locally stores input length rather than repeatedly calling std::string::length. - Nibbler: Makes greater use of std::string::find_first_not_of, instead of looping. - TDB: No longer applies empty filters to lists - just copies the lists. - TDB: Now caches data when reading completed.data. - TDB: During loadPending and loadCompleted, makes fewer copies of the data. - TDB: In commit, breaks out of search loops after finding the right data. - TDB: In gc, only writes out minimal pending or completed data, instead of all data, all the time. - TDB: No longer reads completed.data in gc, and simply appends completed and deleted tasks to it.
This commit is contained in:
parent
cd648270ab
commit
abf31a6b35
6 changed files with 179 additions and 104 deletions
|
@ -55,6 +55,7 @@ public:
|
|||
|
||||
private:
|
||||
std::string mInput;
|
||||
std::string::size_type mLength;
|
||||
std::string::size_type mCursor;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue