Small optimizations to BlockLayout.

Authored by AndreasK on Jan 24 2019, 5:08 PM.

Description

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.

Details

Committed
bgamariJan 31 2019, 11:46 AM
Parents
rGHCff2d6018348c: Replace BlockSequence with OrdList in BlockLayout.hs
Branches
Unknown
Tags
Unknown