Commit 67bf536
committed
Unpacker: always feed string references
Unless you are feeding the unpacker with lots of very small chunks,
there is really nothing to gain in copying these strings in the buffer.
We're much better to just hold a CoW string reference that we'll free
very soon.1 parent d6ab69a commit 67bf536
3 files changed
Lines changed: 3 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | 333 | | |
336 | 334 | | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
340 | | - | |
| 338 | + | |
341 | 339 | | |
342 | 340 | | |
343 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 270 | + | |
278 | 271 | | |
279 | 272 | | |
280 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | 252 | | |
265 | 253 | | |
266 | 254 | | |
| |||
457 | 445 | | |
458 | 446 | | |
459 | 447 | | |
460 | | - | |
| 448 | + | |
461 | 449 | | |
462 | 450 | | |
463 | 451 | | |
| |||
0 commit comments