Make weakmap finalizer an ifunc lambda
Simple comparison between proc/ifunc/method invocations:
proc 15.209M (± 1.6%) i/s - 76.138M in 5.007413s ifunc 15.195M (± 1.7%) i/s - 76.257M in 5.020106s method 9.836M (± 1.2%) i/s - 49.272M in 5.009984s
As proc and ifunc have no significant difference, chosen the latter for arity check.
proc
ifunc
Make weakmap finalizer an ifunc lambda
Simple comparison between proc/ifunc/method invocations:
As
procandifunchave no significant difference, chosen thelatter for arity check.