Commit 2e54db5
Cache one datachunk per tstate to prevent alloc/dealloc thrashing
Summary:
Cache one datachunk per tstate to prevent alloc/dealloc thrashing when repeatedly hitting the same call depth at exactly the wrong boundary.
Upstream issue: python/cpython#142183
Upstream PR: python/cpython#145789
Reviewed By: itamaro
Differential Revision: D96052502
fbshipit-source-id: 883f6148568b6cca5a71dd7d754eb206fbb56f901 parent 42de8cf commit 2e54db5
File tree
1 file changed
+14
-3
lines changed- cinderx/UpstreamBorrow
1 file changed
+14
-3
lines changedLines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7698 | 7698 | | |
7699 | 7699 | | |
7700 | 7700 | | |
7701 | | - | |
7702 | | - | |
7703 | | - | |
| 7701 | + | |
| 7702 | + | |
| 7703 | + | |
| 7704 | + | |
| 7705 | + | |
| 7706 | + | |
| 7707 | + | |
| 7708 | + | |
| 7709 | + | |
| 7710 | + | |
| 7711 | + | |
| 7712 | + | |
| 7713 | + | |
| 7714 | + | |
7704 | 7715 | | |
7705 | 7716 | | |
7706 | 7717 | | |
| |||
0 commit comments