It's very interesting the use of (fl+ sum)
to make the code faster. I think the compiler could be improved to make it unnecessary but I don't know how to do that and how hard is it. So I made a feature request in [Feature Request] Sometimes code with unboxed flonum get faster wrapped with fl+ · Issue #4774 · racket/racket · GitHub