Settings

Theme

80x Faster Rust Code?

github.com

4 points by choiway 6 years ago · 2 comments

Reader

rvz 6 years ago

> I'm still suprised by how much faster the Rust code given that it's not taking advantage of concurrency.

Dynamically-typed language with a GC, executing scripts via an interpreter will always be slower against a compiled, statically-typed language with no GC.

Unfortunately, this comparison is sort of unfair and is frankly "optimization" by using another language.

  • acdha 6 years ago

    It’s not as simple as a dynamic language - python code which is heavily using things which are implemented in C will typically have much less margin. In this case, they’re comparing a Pandas dataframe to a much less complicated HashMap and I’d expect a large fraction of the delta to be related to all of the extra magic in Pandas — which is a great cue to ask whether you need that since you’re definitely paying for it.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection