Skip to content

Commit

Permalink
added TODO for improving showStandard
Browse files Browse the repository at this point in the history
  • Loading branch information
BebeSparkelSparkel committed Jul 22, 2024
1 parent 9086882 commit 5ed732e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Data/ByteString/Builder/RealFloat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ digits w = go [] w
in go ((R.word64ToInt r) : ds) q

-- | Show a floating point value in standard notation. Based on GHC.Float.showFloat
-- TODO: Remove the use of String and lists because it makes this very slow compared
-- to the actual implementation of the Ryu algorithm.
showStandard :: Word64 -> Int -> Maybe Int -> Builder
showStandard m e prec =
case prec of
Expand Down

0 comments on commit 5ed732e

Please sign in to comment.