Incredibly slow import in 2.3.0

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
ppw1
Posts: 34
Joined: Tue Jun 25, 2013 4:55 pm
Operating System: Windows 10

Incredibly slow import in 2.3.0

Post by ppw1 » Tue Nov 06, 2018 12:40 pm

Example:

An 8m:40s long .opus file takes 4 seconds to import in 2.2.2 and 37 seconds to import in 2.3.0.

This is unacceptable. What is going on here?

Windows 10 Pro x64 1803

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Incredibly slow import in 2.3.0

Post by steve » Tue Nov 06, 2018 1:35 pm

We had a report like this recently that was caused by their antivirus app scanning the project files before allowing the project to open. Perhaps the same in your case. If this is the problem, the white-listing ".au" files may fix it.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

normann1974
Posts: 10
Joined: Thu Dec 27, 2018 7:33 pm
Operating System: Windows 10

Re: Incredibly slow import in 2.3.0

Post by normann1974 » Thu Dec 27, 2018 7:43 pm

I've noticed that import through FFMmpeg (e.g. AAC/M4A files) is noticably slower after upgrading to Audacity 2.3.0. Disabling my Antivirus (Avast) does (as expected) not fix this.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Incredibly slow import in 2.3.0

Post by steve » Thu Dec 27, 2018 8:03 pm

normann1974 wrote:
Thu Dec 27, 2018 7:43 pm
noticably slower
Is that "a bit slower" or "incredibly slow"? The original post is about a 900% slowdown. Are you writing about the same thing?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

normann1974
Posts: 10
Joined: Thu Dec 27, 2018 7:33 pm
Operating System: Windows 10

Re: Incredibly slow import in 2.3.0

Post by normann1974 » Fri Dec 28, 2018 3:12 am

Import of 3 minute song (tested with .ogg through FFmpeg):

Audacity 2.2.2: approx. 2 seconds
Audacity 2.3.0: approx. 25 seconds

/Jan

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Incredibly slow import in 2.3.0

Post by steve » Fri Dec 28, 2018 11:04 am

normann1974 wrote:
Fri Dec 28, 2018 3:12 am
tested with .ogg through FFmpeg
How are you doing that, and why are you doing that?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Incredibly slow import in 2.3.0

Post by waxcylinder » Fri Dec 28, 2018 1:00 pm

I tested this with importing a one hour AAC (M4A) audio file - and although my results are not as extreme as normann1974 reports, I can confirm that 2.3.0 is indeed slower at that import than 2.3.0. But the good news is that the upcoming 2.3.1 appears to have fixed this and is now even faster than 2.2.2.

2.2.2 15 seconds
2.3.0 82 seconds (5.55 times slower 0 normann1974's is 21.5 times slower)
2.3.1 alpha 9 seconds

I don't recall us ever logging this as a big on our Bugzilla tracker nor doing anything to fix it. The one bug that we did have and have fixed for the upcoming 2.3.1 was that Nyquist effects ran slower in 2,3,0 compared to 2.2.2 and earlier Audacity versions. See: https://bugzilla.audacityteam.org/show_bug.cgi?id=1991

Since this appears to be already fixed I don't propose to log it on Bugzilla (as an already fixed P1 bug) - unless you, Steve, think that I should for completeness.


@normann1974: we should be building Release Candidates for 2.3.1 sometime in January - would you be interested in testing your use case on that?


Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

normann1974
Posts: 10
Joined: Thu Dec 27, 2018 7:33 pm
Operating System: Windows 10

Re: Incredibly slow import in 2.3.0

Post by normann1974 » Fri Dec 28, 2018 1:13 pm

steve wrote:
Fri Dec 28, 2018 11:04 am
normann1974 wrote:
Fri Dec 28, 2018 3:12 am
tested with .ogg through FFmpeg
How are you doing that, and why are you doing that?
Audacity is doing that. Preferences -> Libraries -> FFMPEG Import/Export Library.

normann1974
Posts: 10
Joined: Thu Dec 27, 2018 7:33 pm
Operating System: Windows 10

Re: Incredibly slow import in 2.3.0

Post by normann1974 » Fri Dec 28, 2018 1:16 pm

waxcylinder wrote:
Fri Dec 28, 2018 1:00 pm
2.2.2 15 seconds
2.3.0 82 seconds (5.55 times slower 0 normann1974's is 21.5 times slower)
2.3.1 alpha 9 seconds
I just tried the latest alpha as well. Import of the same file I tested with earlier takes 3 seconds, slightly slower than 2.2.2, but remarkably faster than 2.3.0.
waxcylinder wrote:
Fri Dec 28, 2018 1:00 pm
@normann1974: we should be building Release Candidates for 2.3.1 sometime in January - would you be interested in testing your use case on that?
Yes, I could do that if needed. Could someone write the announcement of the RC here or send me an e-mail when I need to do something?

/Jan

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Incredibly slow import in 2.3.0

Post by steve » Fri Dec 28, 2018 2:09 pm

By default, Audacity uses "liboggvorbis" (not FFmpeg) to import OGG files, though it is possible (but not recommended) to import OGG files with FFmpeg.

To check to see which importer Audacity is using:
1) Launch Audacity (or close and restart Audacity)
2) "Help menu > Diagnostics > Show Log" (https://manual.audacityteam.org/man/hel ... l#show_log)
3) Clear the log.
4) Import an OGG file.

The log will show something like:

Code: Select all

14:03:57: Opening with liboggvorbis
14:03:57: Open(...../untitled.ogg) succeeded
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply