mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 06:03:49 +01:00
Bug 765 - Delays using Edit commands and Draw Tool in long projects
A 4hr track used to take about 20s to cut a few samples. This is now significantly improved, to around 3s. Leland did this by (a) moving the size calculation to when we examine the undo history, so it isn't slowing down the edits. (b) in size calculation, using sizes that are cached rather than going to disk to find the sizes. (c) writing the autosave file which is to an FFIle to a string first, i.e. using XMLStringWriter as a buffer for XMLFileWriter. Step (c) may also make autosave marginally safer, as the risk of a partially updated autosave file is reduced.
This commit is contained in:
committed by
James Crook
parent
cedc6975e8
commit
2457579091
@@ -443,7 +443,7 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
|
||||
static void AllProjectsDeleteUnlock();
|
||||
|
||||
void PushState(wxString desc, wxString shortDesc,
|
||||
int flags = PUSH_AUTOSAVE | PUSH_CALC_SPACE);
|
||||
int flags = PUSH_AUTOSAVE);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user