on master help sign in
Remove INLINE pragma on timeOfDay64

timeOfDay64 is an enormous function, and marking it as INLINE causes a simple aeson benchmark to exhaust its simplifier ticks. Fixes #502.

commit13eea8cbbae15c1682aea61f99e1643d53c64e3d authorRyan Scott <ryan.gl.scott@gmail.com> dateFri 31 Mar 2017, 17:36 (10 years ago) parent2abacb9
2 files changed+1−2
Data/Aeson/Encoding/Builder.hs−1 benchmarks/aeson-benchmarks.cabal+1−1
Data/Aeson/Encoding/Builder.hs−1
@@ -234,7 +234,6 @@ timeOfDay64 (TOD h m s)
234234 pico = 1000000000000 -- number of picoseconds in 1 second
235235 micro = 1000000 -- number of microseconds in 1 second
236236 milli = 1000 -- number of milliseconds in 1 second
237−{-# INLINE timeOfDay64 #-}
238237
239238timeZone :: TimeZone -> Builder
240239timeZone (TimeZone off _ _)
benchmarks/aeson-benchmarks.cabal+1−1
@@ -179,7 +179,7 @@ executable aeson-benchmark-json-parse
179179
180180executable aeson-benchmark-dates
181181 main-is: Dates.hs
182− ghc-options: -Wall -O2 -rtsopts -fsimpl-tick-factor=200
182+ ghc-options: -Wall -O2 -rtsopts
183183 build-depends:
184184 base,
185185 base-compat,