Overview

Request 352165 accepted

- update to 0.10.0.0
* Performance improvements:
+ Direct encoding via the new toEncoding method is over 2x faster than toJSON.
(You must write or code-gen a toEncoding implementation to unlock this speedup.
See below for details.)
+ Improved string decoding gives a 12% speed win in parsing string-heavy JSON
payloads (very common).
+ Encoding and decoding of time-related types are 10x faster (!!) as a result of
bypassing Data.Time.Format and the arbitrary-precision Integer type.
+ When using toEncoding, [Char] can be encoded without a conversion to Text.
This is fast and efficient.
+ Parsing into an Object is now 5% faster and more allocation-efficient.
* SUBTLE API CHANGES, READ CAREFULLY:
+ With the exception of long-deprecated code, the API changes below should be
upwards compatible from older versions of aeson. If you run into upgrade
problems, please file an issue with details.
+ The ToJSON class has a new method, toEncoding, that allows direct encoding
from a Haskell value to a lazy bytestring without construction of an
intermediate Value.
+ The performance benefits of direct encoding are significant: more than 2x
faster than before, with less than 1/3 the memory usage.
+ To preserve API compatibility across upgrades from older versions of this
library, the default implementation of toEncoding uses toJSON. You will not
see any performance improvement unless you write an implementation of
toEncoding, which can be very simple:
instance ToJSON Coord where
toEncoding = genericToEncoding defaultOptions
(Behind the scenes, the encode function uses toEncoding now, so if you
implement toEncoding for your types, you should see a speedup immediately.)
+ If you use Template Haskell or GHC Generics to auto-generate your ToJSON (forwarded request 352123 from mimi_vx)

Loading...
Request History
Ondřej Súkup's avatar

mimi_vx created request

- update to 0.10.0.0
* Performance improvements:
+ Direct encoding via the new toEncoding method is over 2x faster than toJSON.
(You must write or code-gen a toEncoding implementation to unlock this speedup.
See below for details.)
+ Improved string decoding gives a 12% speed win in parsing string-heavy JSON
payloads (very common).
+ Encoding and decoding of time-related types are 10x faster (!!) as a result of
bypassing Data.Time.Format and the arbitrary-precision Integer type.
+ When using toEncoding, [Char] can be encoded without a conversion to Text.
This is fast and efficient.
+ Parsing into an Object is now 5% faster and more allocation-efficient.
* SUBTLE API CHANGES, READ CAREFULLY:
+ With the exception of long-deprecated code, the API changes below should be
upwards compatible from older versions of aeson. If you run into upgrade
problems, please file an issue with details.
+ The ToJSON class has a new method, toEncoding, that allows direct encoding
from a Haskell value to a lazy bytestring without construction of an
intermediate Value.
+ The performance benefits of direct encoding are significant: more than 2x
faster than before, with less than 1/3 the memory usage.
+ To preserve API compatibility across upgrades from older versions of this
library, the default implementation of toEncoding uses toJSON. You will not
see any performance improvement unless you write an implementation of
toEncoding, which can be very simple:
instance ToJSON Coord where
toEncoding = genericToEncoding defaultOptions
(Behind the scenes, the encode function uses toEncoding now, so if you
implement toEncoding for your types, you should see a speedup immediately.)
+ If you use Template Haskell or GHC Generics to auto-generate your ToJSON (forwarded request 352123 from mimi_vx)


Factory Auto's avatar

factory-auto added factory-repo-checker as a reviewer

Please review build success


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review


Max Lin's avatar

mlin7442 added as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:adi:27"


Max Lin's avatar

mlin7442 accepted review

Picked openSUSE:Factory:Staging:adi:27


Factory Repo Checker's avatar

factory-repo-checker reopened review

ghc-aeson is still building for repository openSUSE_Factory


Factory Repo Checker's avatar

factory-repo-checker accepted review

Builds for repo openSUSE:Factory:Staging:adi:27/standard


Dominique Leuenberger's avatar

dimstar_suse accepted review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse approved review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse accepted request

Accept to openSUSE:Factory

openSUSE Build Service is sponsored by