ladybird/Userland/Libraries/LibDSP
kleines Filmröllchen c2340a1b1f LibDSP: Optimize note processing
Previously, a collection of notes (Vector or Array) would be created and
promptly deleted for every sample (at least 44 thousand times per
second!). This was measured to be one of the most significant
performance drawbacks as well as the most obvious performance
improvement I could currently find here. Although it will not cause
Piano to lag currently (at least on virtualized systems), I see an
incoming issue once we get the capability to use more processors.

Now, we use a HashMap correlating pitches to notes, and Track reuses the
data structure in order to avoid reallocations. That is the reason for
introducing the fast clear_with_capacity to HashMap.
2021-11-11 09:19:17 +01:00
..
Clip.cpp Libraries: Add LibDSP 2021-08-31 17:03:55 +04:30
Clip.h Libraries: Add LibDSP 2021-08-31 17:03:55 +04:30
CMakeLists.txt Libraries: Add LibDSP 2021-08-31 17:03:55 +04:30
Effects.cpp LibDSP: Remove unused Effects::Delay::m_old_delay_size member 2021-09-28 10:58:09 +02:00
Effects.h LibDSP: Remove unused Effects::Delay::m_old_delay_size member 2021-09-28 10:58:09 +02:00
Music.h LibDSP: Optimize note processing 2021-11-11 09:19:17 +01:00
Processor.h Libraries: Add LibDSP 2021-08-31 17:03:55 +04:30
ProcessorParameter.h LibDSP: Clean up ProcessorParameter header 2021-11-11 09:19:17 +01:00
Track.cpp LibDSP: Optimize note processing 2021-11-11 09:19:17 +01:00
Track.h LibDSP: Optimize note processing 2021-11-11 09:19:17 +01:00
Transport.h LibDSP: Move to constexpr wherever possible 2021-11-11 09:19:17 +01:00