1
0
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:
Andreas Källberg
2021-10-11 10:33:43 +08:00
parent 25dd1354c7
commit 221597bd79

View File

@@ -1,4 +1,6 @@
{-# LANGUAGE CPP, MagicHash #-}
-- This module makes profiling a lot slower
{-# OPTIONS_GHC -fno-prof-auto #-}
-- for unboxed shifts
-----------------------------------------------------------------------------