Commit e07e291
committed
Defer reference count mutable class attributes
Mutable class attributes would not scale with more
threads, adding defered reference counting to resolve it.
./python_main.exe Tools/ftscalingbench/ftscalingbench.py class_attribute
Running benchmarks with 18 threads
class_attribute 6.3x slower
./python.exe Tools/ftscalingbench/ftscalingbench.py class_attribute
Running benchmarks with 18 threads
class_attribute 8.0x faster1 parent 9d231cb commit e07e291
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1219 | 1222 | | |
1220 | 1223 | | |
1221 | 1224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
329 | 348 | | |
330 | 349 | | |
331 | 350 | | |
| |||
0 commit comments