One should also avoid object creation where possible -- this sort of optimization is not uncommon in high CPU load game loops running in a scripting language where stop-the-world GC pauses are undesirable. E.g. simplify the display refresh routine by adding a set_display function kind of thing and shift all one-time processing there.
Statistics: Posted by katak255 — Wed Jun 11, 2025 8:19 am