From 6db6dc372579d06cff39d8c2a5df824eb37838fd Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Wed, 4 Oct 2023 03:05:21 -0500 Subject: [PATCH] :pencil: doc: failed optimization --- notes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/notes.md b/notes.md index f25eb13..9d662fd 100644 --- a/notes.md +++ b/notes.md @@ -58,6 +58,12 @@ remove a layer of indirection, too. It's a big change, but I'd need _something_ like this for adding a GC anyway, and sometimes big changes have paid off. +## Cache constants + +Result: Regressed from 3200 to 3600. Not sure why. + +Plan: OP_GETFIELD hits the constants a lot. I thought caching it and not dereferencing the chunk and block constantly might help. + ## Iterating over instruction list (upcoming)