forked fromadafruit/circuitpython
- Notifications
You must be signed in to change notification settings - Fork1
Commitb796e3d
committed
py: Reduce fragmentation of GC heap.
Recent speed up of GC allocation made the GC have a fragmented heap.This patch restores "original fragmentation behaviour" whilst stillretaining relatively fast allocation. This patch works because there isalways going to be a single block allocated now and then, which advancesthe gc_last_free_atb_index pointer often enough so that the whole heapdoesn't need scanning.Should address issueadafruit#836.1 parenta97e091 commitb796e3d
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | 389 | | |
397 | 390 | | |
398 | 391 | | |
| |||
409 | 402 | | |
410 | 403 | | |
411 | 404 | | |
412 | | - | |
413 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
414 | 412 | | |
415 | 413 | | |
416 | 414 | | |
| |||
0 commit comments
Comments
(0)