Skip to content

Improve performance of binary serialisation for interface files

utils/Binary.hs can be made significantly faster. See:

http://www.haskell.org//pipermail/glasgow-haskell-users/2006-April/010037.html

Until we have a standard highly-tuned binary I/O library, I think applying some optimisations to GHC's private binary library will be worthwhile.

The first thing to do is replace IORef (IOUArray Int Word8) with a fast mutable pointer, backed by either a ForeignPtr or a MutableByteArr#.

Trac metadata
Trac field Value
Version 6.4.1
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information