[issue45522] Allow to build Python without freelists

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue to not forget to complete the doc. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue45522] Allow to build Python without freelists

2022-01-14 Thread STINNER Victor
STINNER Victor added the comment: > Freelists for object structs can now be disabled. A new configure option > --without-freelists can be used to disable all freelists except empty tuple > singleton. (Contributed by Christian Heimes in bpo-45522) Can you please document the new

[issue45522] Allow to build Python without freelists

2021-10-29 Thread Christian Heimes
Christian Heimes added the comment: Which part of the patch is causing you extra work? Would you be fine if I only remove the configure option and leave the fixes for zero-length freelists (#define PyList_MAXFREELIST 0) in? -- ___ Python tracker

[issue45522] Allow to build Python without freelists

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: I think we should revert this. It just makes working with freelists more cumbersome. Having more configure options just makes it more likely that we will fail to test some configuration. If you want to disable freelists in your experiments, feel free to do

[issue45522] Allow to build Python without freelists

2021-10-21 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45522] Allow to build Python without freelists

2021-10-21 Thread miss-islington
miss-islington added the comment: New changeset 9942f42a93ccda047fd3558c47b822e99afe10c0 by Christian Heimes in branch 'main': bpo-45522: Allow to disable freelists on build time (GH-29056) https://github.com/python/cpython/commit/9942f42a93ccda047fd3558c47b822e99afe10c0 -- nosy:

[issue45522] Allow to build Python without freelists

2021-10-20 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27352 pull_request: https://github.com/python/cpython/pull/29086 ___ Python tracker ___

[issue45522] Allow to build Python without freelists

2021-10-19 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27327 pull_request: https://github.com/python/cpython/pull/29056 ___ Python tracker ___

[issue45522] Allow to build Python without freelists

2021-10-19 Thread Christian Heimes
New submission from Christian Heimes : Freelists are an optimization trick to avoid allocation and deallocation of commonly used structures. Currently Python has freelists for frame, tuple, float, list, dict, async generators, and context objects. Small ints are also cached. For