OFMutable*: Grow exponentially #121

Open
opened 2026-06-01 02:56:56 +02:00 by js · 0 comments
Owner

Right now, in many cases, a buffer is just grown as needed. As 065d97a727 has shown, this can lead to abysmal performance. Audit where a buffer is grown as needed in mutable classes and change it to grow exponentially instead. Also make sure -[makeImmutable] shrinks to what is actually needed.

Right now, in many cases, a buffer is just grown as needed. As 065d97a727 has shown, this can lead to abysmal performance. Audit where a buffer is grown as needed in mutable classes and change it to grow exponentially instead. Also make sure `-[makeImmutable]` shrinks to what is actually needed.
js added this to the 1.6 milestone 2026-06-01 02:57:11 +02:00
js self-assigned this 2026-06-01 02:57:13 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ObjFW/ObjFW#121
No description provided.