about summary refs log tree commit diff
path: root/tvix/eval/docs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-02T12·46+0300
committertazjin <tazjin@tvl.su>2022-09-08T08·45+0000
commita3b19ad8be9809205e018146ccba2a6bad53d605 (patch)
tree5582a94c6bdc7c0b33f03ffd1eb855da0845a724 /tvix/eval/docs
parent6b3c3c982669e805c9fc06ee74182606497b7bc3 (diff)
docs(tvix/eval): add notes for builtins access optimisation r/4746
Change-Id: Iadbfbe2864ae42fe5492ef3ede0925baee4872b2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6413
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/docs')
-rw-r--r--tvix/eval/docs/known-optimisation-potential.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/tvix/eval/docs/known-optimisation-potential.md b/tvix/eval/docs/known-optimisation-potential.md
index 5a08c25eb4..e7271f4b35 100644
--- a/tvix/eval/docs/known-optimisation-potential.md
+++ b/tvix/eval/docs/known-optimisation-potential.md
@@ -55,3 +55,13 @@ optimisations, but note the most important ones here.
   We can statically detect the conditions for tail-call optimisation.
   The compiler should do this, and it should then emit a new operation
   for doing the tail-calls.
+
+* Optimise inner builtin access [medium]
+
+  When accessing identifiers like `builtins.foo`, the compiler should
+  not go through the trouble of setting up the attribute set on the
+  stack and accessing `foo` from it if it knows that the scope for
+  `builtins` is unpoisoned.
+
+  The same thing goes for resolving `with builtins;`, which should
+  definitely resolve statically.