Skip to content

Conversation

jcupitt
Copy link
Member

@jcupitt jcupitt commented May 29, 2025

I noticed some (probably very seldom used!) code that was calling realloc/free.

Calling realloc in a loop like this is probably incredibly slow, especially on windows, though I doubt if it matters much, I think we won't hit this path often. It would be better to grow the allocation by successive doubling, we'd get O(logN), not O(N).

I fixed a few bad line breaks too.

plus improve some line breaks
@jcupitt jcupitt merged commit 8fb205d into master May 30, 2025
14 checks passed
@jcupitt
Copy link
Member Author

jcupitt commented May 30, 2025

👍

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.

2 participants