From 9be7593cd41a4093b79e6e7b0f94c225c654aa88 Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 26 Jan 2020 08:23:46 +0900 Subject: [PATCH] Add comment --- sim.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sim.c b/sim.c index 0e471a6..81e3fd4 100644 --- a/sim.c +++ b/sim.c @@ -88,6 +88,11 @@ static void oper_poke_and_stun(Glyph *restrict gbuffer, Mark *restrict mbuffer, mbuffer[offs] |= Mark_flag_sleep; } +// For anyone editing this in the future: the "no inline" here is deliberate. +// You may think that inlining is always faster. You would be wrong. Try it. If +// you really want this VM to run faster, you will need to use computed goto or +// write some stuff in assembly. "Add more inlining" is not going to make it +// faster. #define OPER_FUNCTION_ATTRIBS ORCA_NOINLINE static void #define BEGIN_OPERATOR(_oper_name) \