rhai icon indicating copy to clipboard operation
rhai copied to clipboard

rkyv over serde / as a feature flag?

Open wheregmis opened this issue 2 months ago • 4 comments

RKYV's benches compared to serde is insane. Are there any plans to use rkyv over serde or a seperate feature with rikyv in near future?

wheregmis avatar Oct 01 '25 16:10 wheregmis

Not very familiar with it but I don't see why not...

Does it coexist with serde well? If so we can simply gate the feature under a feature flag.

schungx avatar Oct 01 '25 22:10 schungx

Yes, it does and i tried with few types and it was working fine alongside serde gatted behind a feature flag.

wheregmis avatar Oct 03 '25 13:10 wheregmis

Can you make a PR? As I don't use it and not too familiar.

schungx avatar Oct 03 '25 14:10 schungx

Can you make a PR? As I don't use it and not too familiar.

Sure, as i am not also fully aware of the rhai side of the things. I will try to create a draft PR as an experiement. Where we can maybe work together to see if its feasible or can gain performance increment and plan it together.

wheregmis avatar Oct 03 '25 14:10 wheregmis