On 8/31/07, Nicolás Sanguinetti [EMAIL PROTECTED] wrote:
As discussed in
http://redhanded.hobix.com/inspect/showingPerfectTime.html
String.prototype.replace with a callback is broken in Safari (at least
up until v2).
Ah yes, the Safari issue.
Why not simply do :
var $A =
Hi,
I just made a really simple benchmark:
var d = new Date;
/* Prototype 1.6.0.1 entire source code */
alert(new Date - d);
On my macbook it alerts (in milliseconds) :
6 in Safari 3
12-13 in Firefox 2
12-20 in Opera 9
Is Prototype initialization a bottle-neck ?
I definitely don't think
I just added some benchmarks here :
http://dev.rubyonrails.org/attachment/ticket/11264/enumerable_benchmarks.html
This file goes in test/unit with original non-patched Prototype version.
It only benchmarks each with empty function as iterator and here are
some results :
without context,
Actually, both protodoc [1] and Rakefile [2] are patched in this commit.
Protodoc takes an option hash on instantiation, with a
`:strip_documentation` which defaults to `false`.
`rake dist` behavior is unchanged, and `rake doc` uses a temporary
file including PDoc comments to generate
Hello there,
I've been working on fixing String#replace with a function replacement
in an ECMAScript 262-3.1 compliant way.
Unfortunately, MultiSafari is not working on my setup anymore so I
cannot test it against Safari 2.0.4 which seems to be the only buggy
browser regarding this issue.
Hello,
This list is reserved for development purposes but you could ask your
question on the Prototype-Scriptaculous list.
http://groups.google.com/group/prototype-scriptaculous
Thanks for your understanding.
Best,
Samuel.
On 31 mai 09, at 20:18, js_dev wrote:
Hello,
I have a function
Firing an event inside a handler can cause stack overflow if the
handler is observing events from the same type.
Even in more complex cases like (pseudocode) :
observe(a, fireBEvent)
observe(b, fireAEvent)
fireAEvent(); // - stack overflow
Envoyé depuis mon téléphone / Sent from my
Hi,
I've been working on a Template rewrite trying to reduce code size and
complexity.
It uses `String#replace` instead of `String#gsub` and thus performs
better.
Do you guys see any enhancements (in terms of performance or code
size) that could be made ?
Diff:
Hi Luisgo,
From what I remember you're absolutely right and this could be quite
annoying when debugging an application.
Ajax API provides a `onException` callback/responder but exception is
silently ignored when none is provided. [1]
I guess a less-surprising behavior would be to re-throw
Hi,
I think it's indeed a good feature to discuss for 2.0.
I've been working on this too and had quite reasonable performance
when using a hash function that avoids collision.
The simplest implementation consists in storing array of [key, value]
tuples indexed by `key.toString()` in a
I totally agree.
`Array#isEmpty` would be useful too.
Maybe we should rename those methods and deprecate the original names in
1.7.
Best,
Samuel.
2009/10/2 Allen Madsen bla...@gmail.com
I'd prefer isEmpty as well.
Allen Madsen
http://www.allenmadsen.com
On Fri, Oct 2, 2009 at 3:34 PM,
11 matches
Mail list logo