Hi there,'So this problem has been bugging me for a while, and I finally decided to ask the general community in hopes of getting a definitive answer:Builtins block the server, right?
So for example, if I had a builtin called, I don't know, block, and passed it block(60), it would stop everything, commands, tasks, everything on the server, for 60 seconds.
So based on that, why do we have builtins? I mean somethings are obvious. file i/o, for example, is useful, but surely, an over usage of builtins would cause the server to stutter and eventually just give up the ghost.
In my below examples, I used ISA, because I've been speaking about it a lot recently.In the standard lambda core, $ou:isa has a call to $cu:sin, which can lag the server if it is run multiple times on several hundred objects, $cu:sin likes to lag, don't know why it just does.
So, the next obvious step is to instead send $ou:isa straight through, after error checking, to the builtin isa, right?
But surely, isa is a blocking function, and therefore, every time isa is called, the server haults for 0.000000 what ever seconds. Lets say for arguments sake, 0.001 seconds.
So, if isa is called 1000 times, the server locks for a seconds. Surely programmers want to avoid that completely@
Iight be wrong, so please correct me if I am.Thanks for clarifying this weird thought train.
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To post to this group, send email to MOO-...@googlegroups.com.
Visit this group at https://groups.google.com/group/MOO-talk.
For more options, visit https://groups.google.com/d/optout.