Author: sagamusix
Date: Tue Apr 30 18:55:49 2024
New Revision: 20692
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20692
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.30/ (props changed)
branches/OpenMPT-1.30/soundlib/Resampler.h
Modified: branches/OpenMPT-1.30/soundlib/Resampler.h
==============================================================================
--- branches/OpenMPT-1.30/soundlib/Resampler.h Tue Apr 30 18:55:30 2024 (r20691)
+++ branches/OpenMPT-1.30/soundlib/Resampler.h Tue Apr 30 18:55:49 2024 (r20692)
@@ -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
|