shithub: orca

Download patch

ref: 9be7593cd41a4093b79e6e7b0f94c225c654aa88
parent: 461d4f1b54c2022396a7008fc1e1eddfca0ba081
author: cancel <cancel@cancel.fm>
date: Sun Jan 26 03:23:46 EST 2020

Add comment

--- a/sim.c
+++ b/sim.c
@@ -88,6 +88,11 @@
   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)                                             \