9e371a98c2
Michael Snoyman reports that version 0.1.1.0 has serious performance issues:
> import Data.ByteString.Base64
> import Data.ByteString.Char8 (pack)
> import Criterion.Main
>
> main :: IO ()
> main = defaultMain
> [ bench "encode" $ whnf encode $ pack "qwerty"
> ]
On version 0.1.0.3, this takes 229.4312 ns. On 0.1.1.0, it takes 3.556598 ms.
It looks like the problem is coming from the recent addition of URL encoding
(f1916d8a86
).
svn path=/nixpkgs/trunk/; revision=32632
18 lines
506 B
Nix
18 lines
506 B
Nix
{ cabal }:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "base64-bytestring";
|
|
version = "0.1.1.0";
|
|
sha256 = "0vdmwajxg6w924pcsls45bz4bn29xgl3sgvdp2g1jb8f7qb58r7i";
|
|
meta = {
|
|
homepage = "https://github.com/bos/base64-bytestring";
|
|
description = "Fast base64 encoding and deconding for ByteStrings";
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
platforms = self.ghc.meta.platforms;
|
|
maintainers = [
|
|
self.stdenv.lib.maintainers.andres
|
|
self.stdenv.lib.maintainers.simons
|
|
];
|
|
};
|
|
})
|