TreeviewCopyright © aleen42 all right reserved, powered by aleen42

Slow Loop Back

Problem

/* from Google Closure 
 * from array.js, Line 63
 * 每次循環都要查找屬性值而增加開銷
*/
for (var i = fromIndex; i < arr.length; i++) {

Solution

/*
 * Use a variable to store the value of attributes
*/
for (var i = fromIndex, len = arr.length; i < len; i++) {
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.