diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-09 20:50:09 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-09 20:50:09 +0300 |
| commit | d05afa9e368ca8a94d831445a488c89da6825801 (patch) | |
| tree | 86e99594691c51c4fbc71b7670a4ea897a2d4f64 | |
| parent | e874ddb8cee278eded7611cecbc8b2b086e3d6c9 (diff) | |
| download | bcgen-d05afa9e368ca8a94d831445a488c89da6825801.tar.gz bcgen-d05afa9e368ca8a94d831445a488c89da6825801.zip | |
add note about potential future optimization
| -rwxr-xr-x | bcgen | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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): |
