Skip to content
Tcl Source Code View Ticket
Login

View Ticket

buffer allocation on every call to Write in tclIO.c

Closed / Fixeda12ad5c4bd7efcf22906c25feb9a7bebb0aadc5aCreated 5 years agoUpdated 4 years ago
Descriptionwiki2022-04-20 12:03:02
In 2014, in order to resolve segmentation faults tested for by iocmd-21.[12], commit [13886141d8b3acc7] added a reference counting scheme for channel buffers. This scheme mostly negates the buffer recycling that RecycleBuffer() attempts. A better fix was not readily available, and the cost of allocating new buffers is probably usually insignificant compared to the cost of IO anyway. The result since then is that for every 4096 bytes written to a channel, a new buffer is allocated.
pooryorickwiki2022-04-20 12:10:48
pooryorick Pending ticket [a12ad5c4bd]. [History diff]2022-04-20 12:33:51
jan.nijtmans Closed ticket [a12ad5c4bd]. [History diff]2023-02-13 15:58:52
Log in (anonymous is fine) to add a comment.