summaryrefslogtreecommitdiff
path: root/crates/parser/src/optimize/mod.rs
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2026-08-17 20:07:51 +0200
committerGitHub <noreply@github.com>2026-08-17 20:07:51 +0200
commit358a183e5c12c32b8836acf9c71799f56e00b036 (patch)
treeffe63de847cebf5935951454eb8d76d9c76c222a /crates/parser/src/optimize/mod.rs
parenta42cb3434bd79accb6a49298f498e016e9c93b9e (diff)
chore: reduce instruction enum size (#52)
this is a fairly big commit since I've been just playing around with this for a while now. the main goal is to reduce instruction size by moving some operands into two separate vecs. memory operations still seem like the biggest issue right now, so as a follow op I'll probably remove the public linear memory trait again but let's see how this goes first. performance wise this is about the same as before, but serialization/deserialization is about 20% faster now. Signed-off-by: Henry <mail@henrygressmann.de> --------- Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/optimize/mod.rs')
-rw-r--r--crates/parser/src/optimize/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/parser/src/optimize/mod.rs b/crates/parser/src/optimize/mod.rs
new file mode 100644
index 0000000..09501f9
--- /dev/null
+++ b/crates/parser/src/optimize/mod.rs
@@ -0,0 +1,4 @@
+mod rewrite;
+mod targets;
+
+pub(crate) use rewrite::optimize_instructions;