From a79bbad03b370e362e72a8ea616627c2aebd6d48 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 26 Oct 2022 02:22:08 -0700 Subject: docs(tvix/eval): add "intern literals" to future optimisations Signed-off-by: Adam Joseph Change-Id: I460230863de853ca5248733bc977d4780b216f36 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7096 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/docs/known-optimisation-potential.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tvix/eval/docs/known-optimisation-potential.md') diff --git a/tvix/eval/docs/known-optimisation-potential.md b/tvix/eval/docs/known-optimisation-potential.md index 9390e8c601fa..64101b861753 100644 --- a/tvix/eval/docs/known-optimisation-potential.md +++ b/tvix/eval/docs/known-optimisation-potential.md @@ -104,3 +104,9 @@ optimisations, but note the most important ones here. This can be avoided, as we statically analyse the scope and should be able to tell whether any such logic was required. + +* Intern literals [easy] + + Currently, the compiler emits a separate entry in the constant + table for each literal. So the program `1 + 1 + 1` will have + three entries in its `Chunk::constants` instead of only one. -- cgit 1.4.1