1
MP3 - General / Re: Resurrecting/Preserving the Helix MP3 encoder
Last post by KevinB52379 -I did some benchmarking and GCC's fprintf takes 100 times longer even here compared to MSVC's or clang's function.
Attached is a patch that changes progress printing to use WriteConsole on Windows when stderr isn't redirected to file. That gives consistently fast progress display on all compilers. I also noticed that stopping encoding by keyboard press didn't work when not compiled on Visual Studio, fixed that too.
I also changed the progress printing to happen 4 times less often than originally. I think maikmerten's progress update happened too seldom, it looked buggy when it was so sluggish.
I hope @KevinB52379 can test this and report if things now work correctly.
Edit: replaced with static compile.
I tried this version.
At first it started off promising, encoding started at around 1300x, but then about 20 seconds or so in, things started to slow down. They system started to hang, things became very unresponsive.
When encoding first started with foobar it started about 1400x to 1500x and then slowed down drastically.
In fact, in foobar the file list of what was currently being encoded stopped updating, the time elapsed stopped updating, the estimated time complete incrased and then stopped updating. The only thing that was changing, although very slowly was the progress bar of the encoding task.