Re:Changing the Rules of Rust
by insanitybit on Monday September 18, 2023 @03:14PM
(#37560639)
I'm not really understanding why you need to clone the Arc so many times. At most it seems that you'd do so once per request.
"So many times" = one increment + one decrement per request = 100k/sec maybe, bouncing cache lines across 16 cores. This is suboptimal but not world-ending.
Re:Changing the Rules of Rust
by insanitybit on Monday September 18, 2023 @06:35PM
(#37563074)
Definitely suboptimal, no question.
In this case, the Linux rseq-based epoch GC worked perfectly. It is technically a form of garbage collection, but it's not all-or-nothing like Java-style or Bohm GC; it's just a library you use for a few highly used, infrequently updated data structures.