Skip to content
Snippets Groups Projects
Commit 6beea836 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Marge Bot
Browse files

Make dynflag argument for withTiming pure.

19 times out of 20 we already have dynflags in scope.

We could just always use `return dflags`. But this is in fact not free.
When looking at some STG code I noticed that we always allocate a
closure for this expression in the heap. Clearly a waste in these cases.

For the other cases we can either just modify the callsite to
get dynflags or use the _D variants of withTiming I added which
will use getDynFlags under the hood.
parent 9c1f0f7c
No related branches found
No related tags found
No related merge requests found
Showing
with 92 additions and 70 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment