GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-111968: Use per-thread slice_cache in free-threading by corona10 · Pull Request #113972 · python/cpython Conversation
|
| struct _Py_tuple_state tuple_state; | ||
| struct _Py_list_state list_state; | ||
| struct _Py_slice_state slice_state; | ||
| } _PyFreeListState; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@erlend-aasland @colesbury
IMO, we should rename _PyFreeListState if we consider slice_cache is not freelist :)
Do you have any good suggestion?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's basically a freelist of max-length 1 🤷
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In that case, let's maintain the current naming. (Changing is quite stressful)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| void _PySlice_Fini(PyInterpreterState *interp) | ||
| void _PySlice_Fini(_PyFreeListState *state) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is identical to _PySlice_ClearCache. Do we need both functions? If you want to keep both names, maybe have one call the other.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Let's keep both names; I don't want to confuse people who work on the default build.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| struct _Py_tuple_state tuple_state; | ||
| struct _Py_list_state list_state; | ||
| struct _Py_slice_state slice_state; | ||
| } _PyFreeListState; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's basically a freelist of max-length 1 🤷
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll defer to Sam; please take his comments into account :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.