Source

base16-bytestring / Data / ByteString / Base16.hs

Author Commit Message Labels Comments Date
Bryan O'Sullivan
Fix build with GHC 6.12.3
Bryan O'Sullivan
Merge
Vincent Hanquez
convert decode to use an hexadecimal lookup table.
Vincent Hanquez
convert encode to use lookup tables for high and low bits.
Bryan O'Sullivan
Update addresses
Bryan O'Sullivan
Small tidyups.
Bryan O'Sullivan
Improve encoding performance by 50%. Our use of unsafeIndex was slow because we were deconstructing the PS constructor of "digits" on every iteration through the inner loop. Boo! By manually allocating a Ptr and marking it as strict, we can get GHC to hoist the case analysis of the Ptr constructor to the outside of the loop, and thereby win.
Bryan O'Sullivan
Add lazy encoding/decoding support. Improve docs.
Tags
0.1.1.0
Bryan O'Sullivan
Initial commit.
Tags
0.1.0.0