OFMutable*: Grow exponentially #121
Labels
No labels
Arch
AMD64
Arch
m68k
Arch/PowerPC64
Bug
Documentation
Duplicate
Feature
Infeasible
Invalid
Nice to Have
ObjC++
ofarc
ofhttp
OS
AmigaOS
OS
FreeBSD
OS
Linux
OS
macOS
OS
Windows
Out of Scope
Question
Runtime
Security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ObjFW/ObjFW#121
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, in many cases, a buffer is just grown as needed. As
065d97a727has 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.