News for hackers. Stuff that matters.
Re:Making Python 100x faster with less than 100 lines of Rust by ohr on Friday March 31, 2023 @07:24AM (#35385367)
Author here: I agree, that's a great perf advice (esp. when you can restructure your code).

I couldn't get into a this in the article (would be too long), but this is a great point and the original library does this in a lot of places.

One problem in our use case is that the actual structs members are pretty big & that we need to group/regroup them a lot.

The fastest approach for us was to do something like in the article for the initial filtering, then build a hashmap of SoAs with the needed data, and do the heavier math on that.

There are no comments on this comment yet.