Browse Source
Built-in DOM properties are slower than plain JS properties. A few lines before, textContent is assigned as follows: textDiv.textContent = geom.str; So replacing textDiv.textContent.length with geom.str.length slightly improves performance without side effects.
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue