on master help sign in
Update changelog
4224febBryan O'Sullivan
changelog.md+23−8
@@ -1,6 +1,28 @@
10.10.0.0
10.10.0.0
2
2
3+SPEEDUPS:
4+
5+* Direct encoding via toEncoding is over 2x faster than under 0.9 and
6+ earlier. (You must write or code-gen a toEncoding implementation to
7+ unlock this speedup. See below for details.)
8+
9+* Improved string decoding gives a 12% speed win in parsing
10+ string-heavy JSON payloads (very common).
11+
12+* Encoding and decoding of time-related types are 10x faster (!!) as a
13+ result of bypassing Data.Time.Format and arbitrary-precision Integers.
14+
15+* When using toEncoding, [Char] can be encoded without a conversion to
16+ Text. This is fast and efficient.
17+
18+* Parsing into an Object is now 5% faster and more
19+ allocation-efficient.
20+
3−MANY MAJOR CHANGES, READ CAREFULLY
21+MANY API CHANGES, READ CAREFULLY.
22+
23+With the exception of long-deprecated code, the API changes below
24+should be upwards compatible from older versions of aeson. If you run
25+into upgrade problems, please file an issue with details.
4
26
5* The ToJSON class has a new method, toEncoding, that allows direct
27* The ToJSON class has a new method, toEncoding, that allows direct
6 encoding from a Haskell value to a lazy bytestring without
28 encoding from a Haskell value to a lazy bytestring without
@@ -28,18 +50,11 @@ MANY MAJOR CHANGES, READ CAREFULLY
28 camelTo will rename `CamelAPICase` to `camelapi_case`, while
50 camelTo will rename `CamelAPICase` to `camelapi_case`, while
29 camelTo2 will map it to `camel_api_case`.
51 camelTo2 will map it to `camel_api_case`.
30
52
31−* Both encoding and decoding of time-related types are 10x faster.
32−
33−* Encoding [Char] no longer goes via Text. This is faster and uses
34− less memory.
35−
36* New ToJSON and FromJSON instances for the following time-related
53* New ToJSON and FromJSON instances for the following time-related
37 types: Day, LocalTime.
54 types: Day, LocalTime.
38
55
39* The Result type is now an instance of Foldable and Traversable.
56* The Result type is now an instance of Foldable and Traversable.
40
57
41−* Parsing into an Object is now 5% faster and more memory-efficient.
42−
43* The Data.Aeson.Generic module has been removed. It was deprecated in
58* The Data.Aeson.Generic module has been removed. It was deprecated in
44 late 2013.
59 late 2013.
45
60