mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02: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
@@ -29,7 +29,7 @@ class AUDACITY_DLL_API TrackPanelListener {
|
||||
|
||||
virtual void TP_OnPlayKey() = 0;
|
||||
virtual void TP_PushState(wxString shortDesc, wxString longDesc,
|
||||
int flags = PUSH_AUTOSAVE | PUSH_CALC_SPACE) = 0;
|
||||
int flags = PUSH_AUTOSAVE) = 0;
|
||||
virtual void TP_ModifyState(bool bWantsAutoSave) = 0; // if true, writes auto-save file. Should set only if you really want the state change restored after
|
||||
// a crash, as it can take many seconds for large (eg. 10 track-hours) projects
|
||||
virtual void TP_RedrawScrollbars() = 0;
|
||||
|
Reference in New Issue
Block a user