From d05afa9e368ca8a94d831445a488c89da6825801 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 9 Jul 2023 20:50:09 +0300 Subject: add note about potential future optimization --- bcgen | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bcgen b/bcgen index e972709..12937db 100755 --- a/bcgen +++ b/bcgen @@ -321,6 +321,9 @@ class BCGen: # kind of ugly but simplifies gen_select_instance a fair bit self.select.append('if (0) {}\n') + # we could potentially just calculate the wanted label directly and skip + # the huge number of if statements, potentially giving us a slight + # compile time speedup for r0 in self.place(fmt, 0): for r1 in self.place(fmt, 1): for r2 in self.place(fmt, 2): -- cgit v1.3