3 ms·
Clojure to Rust rewrite yields 17x speedup
- augstein 7y agoFrom the comments: „[…] the author confirms that Clojure solution uses boxed numbers. Breaking news: boxed math is 17x slower than unboxed math in a computation-heavy task.„
- cljuser 7y agoClojure’s support for non boxed math is error prone and almost unusable. It’s support for non boxed collections is bolted on. Writing code like this in Clojure is a mess.