Skip to content

Consider avoiding re-allocations when recalculating block behavior #3

Description

@JanBeh

At least in one case, there's a potentially unnecessary allocation during calculation of the impulse response of the Filter block here, while for other Vecs, this is avoided there.

Allocation happens here:

let mut response = vec![Complex::<f64>::from(0.0); n];

Allocation is avoided there:

extended_response.clear();

It should be considered to avoid the re-allocation in this and perhaps other blocks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions