mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 17:42:51 -06:00
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