This commit:
https://github.com/audacity/audacity/commit/376fc0ebf294ca39b56f0ef4177a995f2de11f26
Does not fix every inefficiency, but I think I found and fixed the
grossest problem, at least as it runs on Windows.
Details:
Lyrics::mHighlightTextCtrl is there to implement a different mode in
which the Lyrics window displays multiple lines, but the code making the
radio button to enable this mode is commented out. Yet, there is code
updating this invisible text control, and that seems to be eating most
of the time up:
int nTextLen = mSyllables[i].textWithSpace.Length();
if ((nTextLen > 0) && (mSyllables[i].textWithSpace.Right(1) == wxT("_")))
mHighlightTextCtrl->AppendText(mSyllables[i].textWithSpace.Left(nTextLen -
1) + wxT("\n"));
else
mHighlightTextCtrl->AppendText(mSyllables[i].textWithSpace);
... and the many AppendText() calls (one for each label) each cause
processing of an event, at least in the Windows implementation of
wxTextCtrl.
Commenting out the above lines fixes most of the delay.
But rather than do that, which might be best for speed, I just rewrite
things to compose one big string and then call AppendText once, and
edits are then tolerably fast. Maybe somebody wants to reenable
mHighlightTextCtrl some day?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/529337
Title:
Hangs for a long time when editing labels on large files
To manage notifications about this bug go to:
https://bugs.launchpad.net/audacity/+bug/529337/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs