4 ms·
> IMHO the far better and still my preferred approach would have been to favor a per-thread GIL with an explicit mode to share particular objects. You just des
by schneems 3y ago
> IMHO the far better and still my preferred approach would have been to favor a per-thread GIL with an explicit mode to share particular objects.
You just described Ractors in Ruby, which didn’t turn out great. The setup cost for either freezing or copying memory to the target ractor to guarantee memory safety is often higher than the perf gains of the parallelism.
Not that it can’t work or won’t be improved. But there is a real world case study of what you’re recommending that we can reference without having to guess.
- miraculixx 3y agoThanks for this. I'll read up on that. Any good links pointers to start?