<< Back to previous view

[CLJ-785] Optimize / Created: 30/Apr/11  Updated: 13/May/11  Resolved: 13/May/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: None
Fix Version/s: Backlog

Type: Enhancement Priority: Major
Reporter: Alan Dipert Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None


Optimization to / such that the & more version expands to equivalent of (/ x (reduce * y more)) rather than (reduce / (/ x y) more). There should be an inlined variant of & more as well.

This was originally part of CLJ-184, but was pulled out because it's big enough to be its own ticket. The rationale is that multiplies are significantly faster than divides on the JVM, and n-ary calls to / could be faster.

See "Java Multiplication (Much) Faster than Division" for background and Java benchmarks.

Comment by Alan Dipert [ 13/May/11 9:26 AM ]

We don't want to mess with the semantics of division at the bottom.

Generated at Sun Jan 21 18:29:07 CST 2018 using JIRA 4.4#649-r158309.