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
|
@ -75,11 +75,9 @@ private:
|
|||
int mId;
|
||||
|
||||
std::vector <Task> mPending; // Contents of pending.data
|
||||
|
||||
std::vector <Task> mCompleted; // Contents of pending.data
|
||||
std::vector <Task> mNew; // Uncommitted new tasks
|
||||
std::vector <Task> mModified; // Uncommitted modified tasks
|
||||
|
||||
// TODO Need cache of raw file contents to preserve comments.
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue