Re: [flac-dev] libFLAC optimizations request

2018-02-08 Thread Gabriel Corneanu
Hi, On Sat, Feb 3, 2018 at 10:10 AM, Erik de Castro Lopo wrote: > Gabriel Corneanu wrote: > >> Is this interesting for the project? > > I would theoretically accept a patch that allows direct access to the > functionality you seek, as long as it doesn't change the exis

Re: [flac-dev] libFLAC optimizations request

2018-02-05 Thread Gabriel Corneanu
Hi, On Sun, Feb 4, 2018 at 11:50 PM, Brian Willoughby wrote: > I wasn’t suggesting that you run metaflac, but that you examine its source to > see how it creates new FLAC files without the Vorbis comment. As far as I > know, metaflac uses the standard libFLAC and creates files without the Vorbi

Re: [flac-dev] libFLAC optimizations request

2018-02-04 Thread Gabriel Corneanu
r to reuse an encoder, you’ll >> need to overwrite all state variables, and I don’t see how that could be >> much faster than simply allocating them anew. Perhaps you could allocate >> groups of encoders at once, if that would speed the process. >> >> >> On Feb 1, 2018

Re: [flac-dev] libFLAC optimizations request

2018-02-02 Thread Gabriel Corneanu
Hello again, After some time, I succeeded in splitting "flush" and "restart" functions. A quick measurement gives me ~25% speed improvement, which is quite a lot. Of course this optimization is specific for this use case (many short signals). Is this interesting for the project? I would gladly co

[flac-dev] libFLAC optimizations request

2018-02-01 Thread Gabriel Corneanu
extract all the necessary initialization from "init_stream_internal_" into a new "FLAC__stream_encoder_restart" function. Regards, Gabriel Corneanu ___ flac-dev mailing list flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev