Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio: MDRC: Restructure Multiband DRC for more effective memory alloc… #9195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 29, 2024

  1. Audio: MDRC: Restructure MDRC for effective memory allocation

    This check-in improves memory management in the Multiband Dynamic
    Range Control (MDRC) component by reducing overhead, increasing
    cache efficiency through data locality, and minimising heap
    fragmentation.
    
    Key Changes:
    1. Removed the redundant `struct multiband_drc_coefficients` from
       multiband_drc.h and multiband_drc.c.
    2. Updated `multiband_drc_init` function to eliminate the allocation of
       the obsolete `coefficients_block`.
    3. Adjusted `multiband_drc_free` to no longer check and free the
       now-nonexistent `coefficients_block`.
    4. Streamlined memory allocation and initialization of crossover,
       emphasis, and de-emphasis coefficients directly in
       `multiband_drc_init_coef`.
    5. Simplified overall memory management, removing unnecessary layers of
       indirection.
    
    Performance Improvements:
    - Reduces memory allocation overhead.
    - Enhances data locality, improving cache efficiency.
    - Mitigates heap fragmentation, thereby reducing the chances of memory
      leaks.
    
    Signed-off-by: Shriram Shastry <[email protected]>
    ShriramShastry committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    7627cea View commit details
    Browse the repository at this point in the history