[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2022-01-20 Thread Mark Shannon


Change by Mark Shannon :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-07 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 8319114feedd2a5b77378bba24eb9fb2689c5033 by Mark Shannon in 
branch 'main':
bpo-45947: Place dict and values pointer at fixed (negative) offset just before 
GC header. (GH-29879)
https://github.com/python/cpython/commit/8319114feedd2a5b77378bba24eb9fb2689c5033


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-04 Thread Ken Jin


Change by Ken Jin :


--
nosy: +kj

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-01 Thread Mark Shannon


Change by Mark Shannon :


--
keywords: +patch
pull_requests: +28104
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29879

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-01 Thread Mark Shannon


New submission from Mark Shannon :

To get to the dict (or values array) of an object, we currently need 3 
dependent loads.
By placing the dict at a fixed offset, this can be reduced to one.

What was `obj[obj->type->dictoffset]` becomes `obj[FIXED_OFFSET]`

See https://github.com/faster-cpython/ideas/issues/80, specifically
https://github.com/faster-cpython/ideas/issues/80#issuecomment-931504847 for 
more details.

--
assignee: Mark.Shannon
components: Interpreter Core
messages: 407457
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Place dict (and values) pointers at a fixed (negative) offset from the 
base of the object.
type: performance
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com