Commit 59ca9cf5 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] tweak speedup - respect comment about additional overhead

parent 077ccf56
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -517,7 +517,6 @@ def binaural_fftconv_framewise(
    fade_in = fade_in[:, np.newaxis]
    fade_out = 1.0 - fade_in

    # compute both ears in parallel
    i_ear = list(range(2))
    result = apply_func_parallel(
        render_ear,
@@ -542,7 +541,7 @@ def binaural_fftconv_framewise(
            repeat(indices_HRIR),
        ),
        None,
        "mp",
        None,
        False,
    )

@@ -588,7 +587,6 @@ def render_ear(
            IR=IR[:, i_ear],
        )

    # frame wise parallel computation slow (many frames, small computational load per frame)
    i_frame = list(range(N_frames))
    result = apply_func_parallel(
        convolve_frame,
@@ -607,7 +605,7 @@ def render_ear(
            repeat(N_HRIR_taps),
        ),
        None,
        "mp",
        None,  # frame wise parallel computation slow (many frames, small computational load per frame)
        False,
    )