
13 Jan
2009
13 Jan
'09
10 a.m.
ketil:
"Levi Greenspan"
writes: Now I wonder why Text.JSON is so slow in comparison and what can be done about it. Any ideas? Or is the test case invalid?
I haven't used JSON, but at first glance, I'd blame String IO. Can't you decode from ByteString?
Text.JSON was never optimised for performance. It was designed for small JSON objects. For things above 1M I'd suggest using Data.Binary (or a quick JSON encoding over bytestrings). Shouldn't be too hard to prepare. -- Don