vakata/jstree — Issue #171: Runs slow
Author: rhsdev
Created: 2012-02-17 17:42:34+00:00
State: open

By using arrays and join, jstree could (and does) run much faster.

See http://insite-out.com/2007/11/13/javascript-optimizing-your-code-to-run-faster/#string-concatenation-takes-time

By simply replacing every str+str+str in the program with [str,str,str].join(''); I was able to significantly speed up load times on the tree. (Done here https://gist.github.com/1854545)

By making all += into array pushes, jstree would run even faster. (Not yet done)