- Notifications
You must be signed in to change notification settings - Fork5
Commit72619f8
committed
Modify local buffer management to request memory for local buffers in blocks
of increasing size, instead of one at a time. This reduces the memorymanagement overhead when num_temp_buffers is large: in the previous codingwe would actually waste 50% of the space used for temp buffers, because aset.cwould round the individual requests up to 16K. Problem noted while studyinga performance issue reported by Steven Flatt.Back-patch as far as 8.1 --- older versions used few enough local buffersthat the issue isn't significant for them.1 parentc22dea8 commit72619f8
1 file changed
+51
-6
lines changedLines changed: 51 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 | 171 |
| |
175 |
| - | |
| 172 | + | |
176 | 173 |
| |
177 | 174 |
| |
178 | 175 |
| |
| |||
334 | 331 |
| |
335 | 332 |
| |
336 | 333 |
| |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
337 | 382 |
| |
338 | 383 |
| |
339 | 384 |
| |
|
0 commit comments
Comments
(0)