Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grand Unified Python Object Layout #8

Open
encukou opened this issue Oct 23, 2023 · 1 comment
Open

Grand Unified Python Object Layout #8

encukou opened this issue Oct 23, 2023 · 1 comment

Comments

@encukou
Copy link

encukou commented Oct 23, 2023

See: faster-cpython/ideas#553

Mark's proposal has several advantages, like:

  • Supports multiple inheritance even if instances need C (“raw memory”) data storage
  • The VM can generate correct tp_traverse and tp_clear automatically
  • Core instance structs (PyObject, PyListObject, ...) no longer need to be exposed
  • Focus on performance, especially for core types
@steve-s
Copy link

steve-s commented Dec 7, 2023

I think it would be useful to show how one would implement more complex layouts with that (if they are planned to be supported in this design?), like NumPy array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants