trim redux

trim redux


Hi all,
I was recently debugging some slowness when using $(...).load(), and
found the culprit to be, of all things, jQuery.trim(). In some cases,
trim was taking up to 19 seconds to return a value. I was able to
resolve things locally by replacing jQuery's trim with trim12 from
[1].
I know trim performance has come up before[2][3], but it looks like
(as
of the 1.2.6 release, anyway) trim hasn't been updated à la trim12. Is
this something you'd consider?
Ted
1. http://blog.stevenlevithan.com/archives/faster-trim-javascript
2. http://groups.google.com/group/jquery-dev/browse_thread/thread/f3799d916dfdd872/c4cc1c9e5c0a237d
3. http://groups.google.com/group/jquery-dev/browse_thread/thread/1eba9d253a617574/0e4c42ffc39b6f91