Replies: 1 comment
-
Fun! Thanks for sharing the code, it's a fun read! Nice to see such performance gains, too! Protocol-based RNGs has definitely been something we've been meaning to explore for a~ages, but other things have gotten our attention first 😄 Maybe someday! I'm also a lil curious about result builders for composing generators together, so maybe we'll try it out soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just for fun today, I did a bit of work making a protocol version of most of this library. I made a basic benchmark using
SuspendingClock
and a moderately-nested generator, running in release mode:With the following results:
So the protocol version seems to perform about 5 times better, it seems. This might improve with even more nested generators.
If you're interested in perusing, I've got the code in a fork here.
Beta Was this translation helpful? Give feedback.
All reactions