forked from GitHub/gf-core
When profiling, don't add cost centres in Data.Binary.Get
This change speeds up profiling by an order of magnitude. Without it, the >>= function for Get dominates runtime completely during profiling.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
{-# LANGUAGE CPP, MagicHash #-}
|
{-# LANGUAGE CPP, MagicHash #-}
|
||||||
|
-- This module makes profiling a lot slower
|
||||||
|
{-# OPTIONS_GHC -fno-prof-auto #-}
|
||||||
-- for unboxed shifts
|
-- for unboxed shifts
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user