mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Performance
- Eliminated the 'contents' layer, which was never used to the degree anticipated. This reduces memory footprint significantly.
This commit is contained in:
parent
f47648c71f
commit
cd552231e9
2 changed files with 4 additions and 36 deletions
|
@ -48,7 +48,6 @@ public:
|
|||
|
||||
const std::vector <Task>& get_tasks ();
|
||||
const std::vector <std::string>& get_lines ();
|
||||
const std::string& get_contents ();
|
||||
|
||||
void add_task (const Task&);
|
||||
bool modify_task (const Task&);
|
||||
|
@ -58,7 +57,6 @@ public:
|
|||
|
||||
void load_tasks ();
|
||||
void load_lines ();
|
||||
void load_contents ();
|
||||
|
||||
// ID <--> UUID mapping.
|
||||
std::string uuid (int);
|
||||
|
@ -73,14 +71,12 @@ public:
|
|||
bool _dirty;
|
||||
bool _loaded_tasks;
|
||||
bool _loaded_lines;
|
||||
bool _loaded_contents;
|
||||
bool _has_ids;
|
||||
std::vector <Task> _tasks;
|
||||
std::vector <Task> _added_tasks;
|
||||
std::vector <Task> _modified_tasks;
|
||||
std::vector <std::string> _lines;
|
||||
std::vector <std::string> _added_lines;
|
||||
std::string _contents;
|
||||
File _file;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue