diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc4ba68a8..d702d467b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project are documented in this file. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## Unreleased + +### Changed + +- The single-thread (Asyncify) core is smaller, from leaving more codec libraries out of Asyncify instrumentation. + ## 0.19.0 ### Changed diff --git a/build/ffmpeg-wasm.sh b/build/ffmpeg-wasm.sh index aead1dd5d2..fa3312d54b 100755 --- a/build/ffmpeg-wasm.sh +++ b/build/ffmpeg-wasm.sh @@ -72,9 +72,11 @@ else # uses and nothing here calls. Each fiber carries its own asyncify stack # for fiber swaps; see PFIBER_ASYNCIFY_STACK_SIZE in pthread_fiber.c. -sASYNCIFY_STACK_SIZE=65536 - # x264 has no threads here and only calls back to av_log, so no fiber - # switch happens inside it; instrumenting it only slows it down. - "-sASYNCIFY_REMOVE=['x264_*']" + # These libraries have no threads here and only call back to av_log, so no + # fiber switch happens inside them; instrumenting them only costs size and + # speed. libdav1d, libwebp and the vp8_/vp9_ prefixes (FFmpeg's own decoders + # too) are not listed: -threads N makes them start or wait on threads. + "-sASYNCIFY_REMOVE=['x264_*','vpx_*','lame_*','opus_*','celt_*','silk_*','vorbis_*','ogg_*','th_*','zimg*','FT_*','hb_*','ass_*','fribidi_*']" ) fi