Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-02-13
15:58 • Closed ticket [a12ad5c4bd]: buffer allocation on every call to Write in tclIO.c<... artifact: d4cd6446c9 user: jan.nijtmans
2022-04-20
12:33 • Pending ticket [a12ad5c4bd]. artifact: 99fd440e71 user: pooryorick
12:10 • Ticket [a12ad5c4bd]: 3 changes artifact: 58bbeecb6b user: pooryorick
12:08
Fix for [a12ad5c4bd7efcf2], buffer allocation on every call to Write(). check-in: d699b9b145 user: pooryorick tags: core-8-branch
12:03 • New ticket [a12ad5c4bd] buffer allocation on every call to Write in tclIO.c. artifact: 9f3f644b4e user: pooryorick

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.