Commit f6c416a
authored
Avoid lock if serialization result is already cached (#58722)
The GIL makes checking `self._serialize_cache is not None` atomic, so we
don't need lock.
Signed-off-by: Xinyuan <[email protected]>1 parent b8277d5 commit f6c416a
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
0 commit comments