top | item 31058258

(no title)

juststeve | 3 years ago

The 3x speed increase is interesting. Do you have any further details?

discuss

order

tored|3 years ago

Only 3x speed increase feels like either did PHP a very good job or the port is not optimized for rust yet.

muglug|3 years ago

A bit of one, a bit of the other. It's fairly well-optimised. I think the big remaining optimisation will be to de-allocate memory less frequently — the program creates and destroys millions of structs representing types. 20% of the runtime is taken up iterating over and dropping collections of type-related structs.

muglug|3 years ago

Yes — that's after a ton of Rust-centric optimisation. About 25% of the runtime is currently consumed with deallocating memory (there are a lot of heavily-nested data structures getting cleaned up), so there's definitely some more work to be done to reduce cloning.

juststeve|3 years ago

what's the total running time? ms/sec/minutes/hours? is it heavy IO bound?