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.

isHash optimization

#113

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.

Reported by MadRabbit · November 17th, 2009 @ 12:41 PM

State: resolved
Milestone: 1.5.0 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • 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

    November 20th, 2009 @ 07:18 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.