Source

text / Data / Text / Lazy / Builder / Int.hs

Author Commit Message Labels Comments Date
Bryan O'Sullivan
Replace uses of quot and rem with quotRem Astonishingly (at least to me), this improves performance by almost 30% for large integers.
Bryan O'Sullivan
Switch to a faster decimal algorithm This is about 25% faster than its predecessor for large numbers.
Bryan O'Sullivan
Backed out changeset bb9a0e19421e, since it was slow
Bryan O'Sullivan
A more straightforward (and slower) countDigits This is a few percent slower than the tail-recursive version for numbers of more than one digit.
Bryan O'Sullivan
Replace countDigits with a faster, more complex version This is taken from Andrei's "Three Optimization Tips for C++" post: https://www.facebook.com/notes/facebook-engineering/three-optimization-tips-for-c/10151361643253920 It improves performance by up to 15%.
Bryan O'Sullivan
Replace a use of div with quot This actually makes about a 7% difference in performance!
Bryan O'Sullivan
Update some comments and whitespace
Bryan O'Sullivan
Cast to widest fixed integer to avoid truncation trouble
Bryan O'Sullivan
Write straight into the dest buffer
Bryan O'Sullivan
Float ensureFree way out
Bryan O'Sullivan
Reduce duplication
Bryan O'Sullivan
Add a countDigits function
Bryan O'Sullivan
Drop some redundant imports.
Bryan O'Sullivan
Oops
Bryan O'Sullivan
Get rendering of numbers working in all cases
Thomas M. DuBuisson
Use integer-simple if the integer-simple flag is set.
Bryan O'Sullivan
Add support for rendering of integral and floating point values.