Remove redundant hv_exists() calls from ithread_create()'s spec parser.
authorNicholas Clark <nick@ccl4.org>
Sat, 13 Feb 2010 09:05:18 +0000 (09:05 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 20 May 2010 19:55:42 +0000 (20:55 +0100)
commitb1faab355535118c9fb99fcc343501012923ece2
tree99ce0cd0a632e3c4674b0c02b5065a18a5846316
parent4cf5eae5e58faebb6ae9e68e493cd85343f7a76c
Remove redundant hv_exists() calls from ithread_create()'s spec parser.

hv_fetch(..., 0) won't create the element if it doesn't exist, returning a NULL
pointer, so hv_exists() and hv_fetch() is doing two hash lookups where one would
suffice.

On this machine, reduces the object code by 3K, about 7%. Everyone's a winner.
dist/threads/threads.xs