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

[Galaxy] Optimize Python / XOS #15

Merged
merged 34 commits into from
Apr 5, 2025
Merged

[Galaxy] Optimize Python / XOS #15

merged 34 commits into from
Apr 5, 2025

Conversation

verbiiyo
Copy link
Contributor

@verbiiyo verbiiyo commented Apr 5, 2025

Introduces a pretty significant speedup for python bindings. It could still be much faster, but due to pyo3 and rust being overbearing with their memory and lifetimes B.S, we're kinda unable to get full zero-copies.

At least, I haven't found a great way to get full zero-copy support. So python has to return the frame from the tick function and it gets copied into what's supposed to be the zero-copy buffer.

But we're getting much closer. Python still remains only supported for local native windows, but I hope next we'll be able to support wasm <> python interactions, and even better yet react-native.

That will allow us to write some really badass python demo codes. Especially if we never need to write any weird API code (fuck http, flask, and anything fetch-related).

python-galaxy.mov

@verbiiyo verbiiyo merged commit 510919e into main Apr 5, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant