12:12:09drmeisterjackdaniel: ECL has this thing ECL_USE_MPROTECT that uses mprotect to trap access to the environment to indicate that there is a pending signal. I don't understand why that is faster than the alternative of calling ecl_check_pending_interrupts(env) in https://gitlab.com/embeddable-common-lisp/ecl/blob/develop/src/h/external.h#L1865
12:13:03drmeisterI don't know if you have dug into this part of ECL - but do you have any insight as to why using mprotect is faster than the alternative?
12:16:40flip214drmeister: probably because checking a flag in tight loops costs performance in each iteration, while the "memory protection fault" comes mostly free with the next access
12:17:25drmeisterjackdaniel: No problem - thank you.