isHash optimization
Reported by MadRabbit | November 17th, 2009 @ 12:41 PM | in 1.5.0 Release
I assume in the current implementation the check of the value type in the function is not necessary, check it out if we can safely get rid of it.
Comments and changes to this ticket
-
MadRabbit November 20th, 2009 @ 07:18 PM
- State changed from new to resolved
it's actually works faster with the typeof() check, case this thing narrows down the range of checks to just nulls and objects in a single fast call.
I only replaced '==' with '===', which should be working a tiny bit faster
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 ยป
RightJS Core Tickets