Code: Select all
> (dolist (s (sequence 1 10000)) (push (rand 300 4) y -1))
> (set 'z (y -2))
; this is the second to last {number} :)
> (time (find z y))
; 8.x ms
The numbers must be in this format, or something very close. Any extra processing to convert the input (which is z in this case) could take too long.
I can happily convert the y to a better format, if it improves the search speed.
Is there a faster find I should be considering?