createElement improvement
Reported by Diego Perini | 2009-08-05 14:15:03 UTC
Seems this can be an improvement for the current "createElement()":
function createElement(tagName, attributes) {
return Element.writeAttribute(
Element.cache[tagName] ||
(Element.cache[tagName] =
Element.extend(Fuse._doc.createElement(tagName))),
attributes);
}
a speed boost on most browsers. Seems Chrome/Safari speedup are much higher, gains on IE seems lower.
Please post your results, I am attaching a small test to play with.
Comments and changes to this ticket
-

John-David Dalton 2009-08-05 14:24:29 UTC
- Tag changed from createelement, speed to createelement, performance, speed
Diego FTW :D, will check it out thanks.
-

John-David Dalton 2009-08-05 14:26:46 UTC
Seems its missing the
cloneNode(false)part, which is critical for its operation. -

-

John-David Dalton 2009-08-05 23:17:22 UTC
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.