Internal improvements
This release contains several internal improvements to make the package be more stable and faster, as well as fixing one bug.
- 878fc50: Improve decoding speed by avoiding some memory copies and telling the size of arrays beforehand in
Frame
. These changes made decoding to be a bit faster (like 7% faster in local tests). - 3d48b1e: If Ogg is not supported, constructors for the node.js streams will throw an exception (if ogg is requested).
- cf894ba: Removed internal
async_context
for several places and refactored mutex locks in encoder and decoder. - 288b350: Move all internal constructors (C++ code) into
NativeAddon
instance. - ce03102: If
StreamEncoder
,FileEncoder
orStreamDecoder
were finished without writing anything, an exception was thrown #22 - b8f26e2: Added
debug
logs for debugging.
New debug logs for investigating issues
There are new debug logs for the node.js streams that will help you (or me) track down issues in the stream implementations. The logs are enabled by filling the environment variable DEBUG
with flac:*
or more specific namespaces like flac:encoder:*
or flac:decoder:stream
(see readme for all namespaces). Uses debug package to achieve this.
These logs can be very helpful when filling issues :)