Skip to content

Commit

Permalink
Use Exts.lazy instead of Exts.noinline
Browse files Browse the repository at this point in the history
The magic noinline id just isn't available with ghc-8.0...
  • Loading branch information
clyring committed Feb 15, 2024
1 parent e1aab36 commit 2603009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/BenchAll.hs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ main = do
[ benchB'_ "mempty" mempty
, bench "toLazyByteString mempty" $ nf toLazyByteString mempty
, benchB'_ "empty (10000 times)" $
stimes (10000 :: Int) (Exts.noinline BI.empty)
stimes (10000 :: Int) (Exts.lazy BI.empty)
, benchB'_ "ensureFree 8" (BI.ensureFree 8)
, benchB' "intHost 1" 1 Extra.intHost
, benchB' "UTF-8 String (12B, naive)" "hello world\0" fromString
Expand Down

0 comments on commit 2603009

Please sign in to comment.