$indexOfArray can optimize for constant array

XMLWordPrintableJSON

    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When array passed to $indexOfArray is a constant array we can give O(1) lookup by using a hash table for the array.

            Assignee:
            Charlie Swanson
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: