Small optimizations to BlockLayout.
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>
Thu, 24 Jan 2019 23:08:21 +0000 (00:08 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 31 Jan 2019 17:46:51 +0000 (12:46 -0500)
commit438c11cc5ef4b3afa4afe98dd649ce5fd93bb971
treeafd9f2ee2fdcb8530043d309e6a9efc95ba2bee8
parentff2d6018348c6d316b87c596a4010b316501b91c
Small optimizations to BlockLayout.

* Remove `takeL/R 1` occurences by lastOL/headOL.

* Make BlockChain a OrdList newtype by removing the set of blocks.

Initially BlockChain contained both, a set for membership test
and a ordered list of blocks. The set is not used for any
performance sensitive lookups so we get rid of it.
compiler/nativeGen/BlockLayout.hs