Skip to content

Conversation

@frankverhoeven
Copy link
Contributor

Calling array_merge inside a loop will copy the entire array into memory on every iteration (O(n)), moving this out of the loop will make it O(1), reducing memory usage.

Calling `array_merge` inside a loop will copy the entire array into memory on every iteration (`O(n)`), moving this out of the loop will make it `O(1)`, reducing memory usage.
@casperbakker casperbakker merged commit 92041aa into main Sep 2, 2025
@casperbakker casperbakker deleted the PIC-4157-perf branch September 2, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants