You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allocation of values array in split dicts should use small object allocator. #68836
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/larryhastings'closed_at=<Date2016-09-02.11:04:35.312>created_at=<Date2015-07-16.20:58:44.176>labels= ['interpreter-core', 'easy', 'performance']
title='Allocation of values array in split dicts should use small object allocator.'updated_at=<Date2016-09-02.11:04:35.311>user='https://github.com/markshannon'
We should also try to modify PyMem allocator to simply be an alias to PyObject allocator. I expect a little speedup. I'm not talking for the specific case of the dict type, but for all Python.
Assigning to myself on behalf of "aniawsz". I actually want to assign it to her but for some reason I can't. (Maybe because she doesn't have the commit bit?)
Activity
markshannon commentedon Jul 16, 2015
bpo-23601 advocates using the small object allocator for dict-keys objects and the results of tests are good.
Using the small object allocator for dict value-arrays as well seems like the obvious next step.
vstinner commentedon Jul 16, 2015
If it's an optimization, we need benchmarks.
We should also try to modify PyMem allocator to simply be an alias to PyObject allocator. I expect a little speedup. I'm not talking for the specific case of the dict type, but for all Python.
larryhastings commentedon Aug 17, 2016
Assigning to myself on behalf of "aniawsz". I actually want to assign it to her but for some reason I can't. (Maybe because she doesn't have the commit bit?)
vstinner commentedon Aug 17, 2016
In Python 3.6, PyMem_Malloc() is now an alias to PyObject_Malloc(), both functions use the pymalloc allocator: see the issue bpo-26249.
This issue can now be closed.
--
Note: I created the issue bpo-26249 when I saw the good results of the issue bpo-23601. In fact, I had the idea when I wrote tracemalloc, but I chose to defer the idea because some people expected regressions. PYTHONMALLOC=debug should now help to find and debug issues:
https://docs.python.org/dev/whatsnew/3.6.html#pythonmalloc-environment-variable
Vgr255 commentedon Aug 17, 2016
One needs to have the "Developer" role (i.e. can triage issues) to be assigned :)