Skip to content

Conversation

@rouson
Copy link
Collaborator

@rouson rouson commented Sep 9, 2022

Given a history vector storing N time steps, this pull request reduces the cumulative memory allocation from O(N^2) to O(N) by allocating the entire history vector once rather than growing it by one element at each time step. This greatly reduces execution times.

@rouson rouson requested a review from davytorres September 15, 2022 18:37
Copy link
Collaborator

@davytorres davytorres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davytorres davytorres merged commit d389342 into main Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants