Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

createElement improvement

#50

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.

Reported by Diego Perini · August 5th, 2009 @ 02:15 PM

State: resolved
Milestone: none
Assigned to: John-David Dalton John-David Dalton

Activity

  1. John-David Dalton
    John-David Dalton
    • Tag changed from createelement, speed to createelement, performance, speed

    Diego FTW :D, will check it out thanks.

    August 5th, 2009 @ 02:24 PM

  2. John-David Dalton
    John-David Dalton

    Seems its missing the cloneNode(false) part, which is critical for its operation.

    August 5th, 2009 @ 02:26 PM

  3. John-David Dalton
  4. John-David Dalton
    John-David Dalton
    • State changed from new to resolved

    August 5th, 2009 @ 11:17 PM

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.