From 210ccabc9489bfbf814939e8b45646c8d0c7ce5f Mon Sep 17 00:00:00 2001 From: Johan Tibell Date: Wed, 12 Mar 2014 07:20:19 +0100 Subject: codeGen: allocate small byte arrays of statically known size inline This results in a 57% runtime decrease when allocating an array of 128 bytes on a 64-bit machine. Fixes #8876. --- utils/deriveConstants/DeriveConstants.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/deriveConstants') diff --git a/utils/deriveConstants/DeriveConstants.hs b/utils/deriveConstants/DeriveConstants.hs index 10df61ca7d..293fe65492 100644 --- a/utils/deriveConstants/DeriveConstants.hs +++ b/utils/deriveConstants/DeriveConstants.hs @@ -392,7 +392,7 @@ wanteds = concat ,closureField Both "StgMutArrPtrs" "size" ,closureSize Both "StgArrWords" - ,closureField C "StgArrWords" "bytes" + ,closureField Both "StgArrWords" "bytes" ,closurePayload C "StgArrWords" "payload" ,closureField C "StgTSO" "_link" -- cgit v1.2.1