- only use it when compiling against bytestring >= 0.10.4.0 - speed improvement over bytestring-via-text encoding: factor 1.5 - 1.6 for japanase and english JSON messages factor 2 for integer encoding - equal speed for encoding floats
--HG-- rename : Data/Aeson/Parser.hs => Data/Aeson/Parser/Internal.hs
toJSON previously converted a tuple into a list and then converted that list into a vector. I now run a ST computation that creates a mutable vector of the correct size and fills it with the right Values. This improves performance by 45%. fromJSON previously converted the vector into a list and then pattern matched that list so that the elements could be parsed. I now index the vector directly so we don't need to create a list. This improved performance by 20%.
instead of ()s so that it's easier to check for correctness.