Anders Kaseorg

Results 386 comments of Anders Kaseorg

The Rayon syntax you’re looking for is `a.par_chunks(128).flat_map(|chunk| …).collect()`. (Pick your favorite chunk size.)

AFAIK Faster doesn’t currently provide a way to accelerate filter, with or without Rayon—so you’d just use the normal Rayon filter. (If in the future some kind of filter is...

Based on a report by a zulip-desktop user, this crash seems to follow the warning in #31. I wonder if that’s the root cause? `objc[87760]: Class NotificationCenterDelegate is implemented in...

You can work around this by replacing the direct recursion with `Self`. (I’ve added a `T` field because `T` has to be used somewhere.) ```rust #[derive(gc_arena::Collect)] #[collect(no_drop)] struct Test>) where...

As slow as GCD may be, not using it has seriously killed the performance of repeated addition workloads like ``` 1/3 + 1/2 = 5/6 + 1/2 = 16/12 +...

Honestly, my first recommendation would still be to do GCD at every operation, by the [same reasoning the GMP developers used](https://gmplib.org/manual/Rational-Internals.html). If you wait until the denominator gets big (whatever...

@vks But it’s not as simple as “users can normalize if they want”. 1. As noted in the GMP documentation that I linked: if we know that `a/b` and `c/d`...

Cool, that was fast! It almost works. - The last two `define-key`s are missing their third argument. - The `` and `` bindings surprised me; I just wanted to move...

Oh, looking further through the history, I see there was a change in #194 to use the `raw_entry` API that’s not yet stabilized in `std`, although it was then reverted....