From 5ed732e4378ae8af1aedb869d3de90de0e4dd720 Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Sun, 14 Jan 2024 22:14:58 -0500 Subject: [PATCH] added TODO for improving showStandard --- Data/ByteString/Builder/RealFloat.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Data/ByteString/Builder/RealFloat.hs b/Data/ByteString/Builder/RealFloat.hs index 4cbbeaa9b..6d71b867c 100644 --- a/Data/ByteString/Builder/RealFloat.hs +++ b/Data/ByteString/Builder/RealFloat.hs @@ -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