Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Currently pr-str performance is terrible. We should implement printing in the same style as core_print.clj Clojure JVM.
I've rewritten the pr-str stuff, passing a StringBuffer down and appending to it instead of doing a massive amount of concats with temporary lists (some of which were lazy). The results are very promising. On V8, serialization of big data structures is 2-3 times faster, and in the IE8 JS engine, it's 10 times faster.
I still need to clean it up and get the tests working, but I should be able to submit a patch pretty soon.