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

Support multi-threading. #157

Open
alexlopashev opened this issue Jan 2, 2025 · 0 comments
Open

Support multi-threading. #157

alexlopashev opened this issue Jan 2, 2025 · 0 comments

Comments

@alexlopashev
Copy link

It seems that ypy was written to work only in single threaded environment, however it can be improved to support multithreading.

I've looked into this, and so far needed changes are:

  • Pull yrs dependency with "sync" feature enabled
  • Convert all Rc<RefCell< RefCell<T>> to Arc<Mutex>orArc<RwLoc<RwLock>`
  • In transactions code and convert weak references to work with Arc
  • Remove unsendable parameter from structs marked with #[pyclass]
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

1 participant