Skip to content

Conversation

I-Al-Istannen
Copy link
Contributor

This allows moving it off the main thread, processing json in parallel and moving the results back to main.

I settled on RefPtr as it is quite short and a common name in other languages for reference counted pointers.

This allows moving it off the main thread, processing json in parallel
and moving the results back to main.
pub use funs::funs;
pub use num::Num;

#[cfg(feature = "sync")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we actually do pub(crate) use alloc::sync::Arc as Rc here and use Rc everywhere? That would make this PR much smaller ...

Copy link
Contributor Author

@I-Al-Istannen I-Al-Istannen Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are fine with it, I certainly can. I just did not want to lie about what Rc refers to, as many people have expectations when reading it :) If you want it though, I will gladly change it. I have no strong opinion.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this change myself now in d5f4b84.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me :)

@01mf02 01mf02 merged commit 0ef0fb0 into 01mf02:main Sep 23, 2025
@01mf02
Copy link
Owner

01mf02 commented Sep 23, 2025

Thanks again for your contribution! :)

@I-Al-Istannen I-Al-Istannen deleted the feature/sync branch September 23, 2025 13:35
@I-Al-Istannen
Copy link
Contributor Author

Thank you for (implementing it) merging and maintaining jaq :)

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.

2 participants