From: <sv...@op...> - 2024-04-30 16:55:44
|
Author: sagamusix Date: Tue Apr 30 18:55:30 2024 New Revision: 20691 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20691 Log: Merged revision(s) 20690 from trunk/OpenMPT: [Imp] In r15576, resampler table initialization was moved to the time the first module is loaded in libopenmpt. This caused a huge performance loss for fuzzing using afl's persistent mode, so the original behaviour is restored for fuzzer builds now. ........ Modified: branches/OpenMPT-1.31/ (props changed) branches/OpenMPT-1.31/soundlib/Resampler.h Modified: branches/OpenMPT-1.31/soundlib/Resampler.h ============================================================================== --- branches/OpenMPT-1.31/soundlib/Resampler.h Tue Apr 30 18:55:05 2024 (r20690) +++ branches/OpenMPT-1.31/soundlib/Resampler.h Tue Apr 30 18:55:30 2024 (r20691) @@ -33,7 +33,9 @@ // Caching gets triggered via a global object that primes the cache during // construction. // This is only really useful with MPT_RESAMPLER_TABLES_CACHED. -//#define MPT_RESAMPLER_TABLES_CACHED_ONSTARTUP +#ifdef MPT_BUILD_FUZZER +#define MPT_RESAMPLER_TABLES_CACHED_ONSTARTUP +#endif #endif // LIBOPENMPT_BUILD |