Improve GHC.Event.IntTable performance
authorJonas Scholl <anselm.scholl@tu-harburg.de>
Fri, 8 Jan 2016 10:46:42 +0000 (11:46 +0100)
committerBen Gamari <ben@smart-cactus.org>
Fri, 8 Jan 2016 11:26:33 +0000 (12:26 +0100)
commit1abb7005067e22039807de34cd60bed55316e925
tree4bbaef1ba171b34eb6c6b52328155797a1bfc7f2
parent0163427761c0e72a3acf09f854b3447f2e553f1b
Improve GHC.Event.IntTable performance

Speed up GHC.Event.IntTable.lookup by removing the IO context from the
go helper function. This generates a little bit better code as we can
avoid repeating the stack check.

Remove unused parameter from GHC.Event.IntTable.updateWith.go and
directly return a bool instead of a maybe and then checking that whether
it is a Nothing.

Test Plan: validate

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1742

GHC Trac Issues: #8793
libraries/base/GHC/Event/IntTable.hs