summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Källberg <anka.213@gmail.com>2021-10-11 10:33:43 +0800
committerAndreas Källberg <anka.213@gmail.com>2022-05-03 13:08:35 +0800
commit221597bd79054af47d3d5866d74a03ee9d7cd6e6 (patch)
treee84b7edb2349cea0c5748b34809aafea1737e402
parent25dd1354c71ab9267d6fdb8ad7cf8cc7ce30812f (diff)
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.
-rw-r--r--src/runtime/haskell/Data/Binary/Get.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/haskell/Data/Binary/Get.hs b/src/runtime/haskell/Data/Binary/Get.hs
index 54f17ae95..07a3db40e 100644
--- a/src/runtime/haskell/Data/Binary/Get.hs
+++ b/src/runtime/haskell/Data/Binary/Get.hs
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP, MagicHash #-}
+-- This module makes profiling a lot slower
+{-# OPTIONS_GHC -fno-prof-auto #-}
-- for unboxed shifts
-----------------------------------------------------------------------------