Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
997 commits behind, 261 commits ahead of the upstream repository.
  • Cheng Shao's avatar
    048b5404
    compiler: use fromAscList when applicable · 048b5404
    Cheng Shao authored
    This patch uses fromAscList (with O(n) complexity) instead of fromList
    (with O(nlogn) complexity) in certain Binary instances. It's safe to
    do so since the corresponding serialization logic is based on toList
    (same as toAscList).
    
    (cherry picked from commit 1c8e608a)
    048b5404
    History
    compiler: use fromAscList when applicable
    Cheng Shao authored
    This patch uses fromAscList (with O(n) complexity) instead of fromList
    (with O(nlogn) complexity) in certain Binary instances. It's safe to
    do so since the corresponding serialization logic is based on toList
    (same as toAscList).
    
    (cherry picked from commit 1c8e608a)
Binary.hs 71.10 KiB