Improve heap-allocation by adding explicit type signatures.
authorMilan Straka <fox@ucw.cz>
Sun, 22 Apr 2012 15:48:29 +0000 (17:48 +0200)
committerMilan Straka <fox@ucw.cz>
Sun, 22 Apr 2012 15:48:29 +0000 (17:48 +0200)
commit32d84ba5eb82f34dbb8a8fabf07077d848cdb408
treeb6ac6e1ef0fa8b0320a847f93396f09f6b42f3dd
parent299ba9054c1f9ac97fe66e6c422b1b32730855ec
Improve heap-allocation by adding explicit type signatures.

When a local 'go' function is using methods from Ord dictionary,
this dictionary is heap-allocated at the entry to the outer function.
If it is given explicit type mentioning the Ord class, the dictionary is
passed on the stack, decreasing heap allocation.
Data/Map/Base.hs
Data/Map/Strict.hs
Data/Set.hs