Hi all,
I was just reading on ajaxian that Steven Levithan has done some
benchmarks and found that innerHTML's main bottle neck is in its
destruction of existing nodes/elements. He has posted a new method. He
has benchmarks and a performance test as well. I figured it would be
an interesting
+1 for baking this into core, it's like duh, how no one tested this before
On 9/13/07, jdalton [EMAIL PROTECTED] wrote:
Hi all,
I was just reading on ajaxian that Steven Levithan has done some
benchmarks and found that innerHTML's main bottle neck is in its
destruction of existing
I have noticed there are alot of places in the Prototype 1.6 where
you use Element.extend() vs $(). Is there a performance reason for
this, becuase it does add to script size..
I will happily make a patch if a course of action is decided on either
way.
On 9/13/07, jdalton [EMAIL PROTECTED] wrote:
I have noticed there are alot of places in the Prototype 1.6 where
you use Element.extend() vs $(). Is there a performance reason for
this, becuase it does add to script size..
I approve of replacing $ with extend where this makes sense. It will
On 9/13/07, jdalton [EMAIL PROTECTED] wrote:
You should know by now, I published the packed versions of Prototype
Of course I know. But I was speaking to anyone else who might be reading our
conversation.
--~--~-~--~~~---~--~~
You received this message because
Is there a gotcha with this code? (I haven't tested, and defer to
brighter minds than mine.)
Because he's replacing the target node with a clone of itself (code
below), is there the potential to lose attached event observers?
That'd violate POLS.
/* This is much faster than using
You'd be losing attached event observers anyway when you do a plain old
.innerHTML = ...
If anything, a one-step further implementation of this method would handle
_removing_ any event handlers for you for memory management considerations
(addressing potential circular reference based leaks that
On 9/13/07, Ryan Gahl [EMAIL PROTECTED] wrote:
You'd be losing attached event observers anyway when you do a plain old
.innerHTML = ...
He meant the target element, not the subelements. Yeah, it will remove event
handlers. Prototype, however, is able to remove all attached handlers
Mislav, I am just giving you a hard time :P
I also noticed there is inconsistent use of single quote vs double
quote... seems more single thant double (I prefer single quites unless
a newline character is involved... I will fix that as well if you
like.
I don't know if anyone has encountered this problem before, but I was
reading nodes from an XML document (ajax response) and I tried the
Element.readAttribute function instead of my own home brewed
algorithm. (This Web application goes all the way from before there
was such function in the
10 matches
Mail list logo