Author: sagamusix
Date: Tue Apr 30 18:55:05 2024
New Revision: 20690
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20690
Log:
[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:
trunk/OpenMPT/soundlib/Resampler.h
Modified: trunk/OpenMPT/soundlib/Resampler.h
==============================================================================
--- trunk/OpenMPT/soundlib/Resampler.h Mon Apr 29 11:37:36 2024 (r20689)
+++ trunk/OpenMPT/soundlib/Resampler.h Tue Apr 30 18:55:05 2024 (r20690)
@@ -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
|