| ▲ | remcob a year ago | |||||||
Did you verify this through disassembly? These loops can still be replaced by a closed form expression and I wouldn’t be surprised if LLVM figured this out. | ||||||||
| ▲ | namibj a year ago | parent | next [-] | |||||||
Sooooo.... anyone know a compiler that actually does the closed form tactic on the loop(s)? If I see correctly, in theory the program could be compiled down to something that finishes nearly instantly, with no loops at all? | ||||||||
| ▲ | Dylan16807 a year ago | parent | prev [-] | |||||||
If it turned the inner loop into a closed form expression, I would expect the outer loop to go through 10k iterations a lot faster than needing half a second. | ||||||||
| ||||||||