On Thu, 17 Jul 2025 at 20:39, Steven <
sbde...@gmail.com> wrote:
> Francisco: Glad to see someone actually *uses* this function at all! It means it actually isn't so trivial after all! And yeah I agree it should not be global generally. This was just a quick example of usage.
After many years I've found that having optional hook functions in a
network of objects if error prone and normally slower then just having
the default value of the hook be a simple function. I collect them in
a library, ARGS, ARG1..ARG9, NOP, NIL, TRUE/FALSE/ZERO and many more
are there along with some binders and other things.
One thing, beware of passing the lua-c barrier, it seems to have a
measurable costs. IIRC once I (tried to) overprimized an integer index
table access by using rageti and found it was actually slower than
just using normal indexing.
Francisco Olarte.