commit | cf0fd44e1329e96c94641c663fe82926ecfb4ed8 | [log] [tgz] |
---|---|---|
author | adonovan <adonovan@google.com> | Fri Nov 20 11:23:21 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 20 11:24:17 2020 -0800 |
tree | 7268a87a2101aaa1045622bc52c05fd5c55c8c9a | |
parent | d71de6921305af79e41bd691ef201821bdecf64a [diff] |
starlark: implement "flat frames" optimization The resolver now statically maps each local variable to a small integer, and the set of local bindings (including from comprehensions) is accumulated into each Resolver.Function. The evaluator uses an array instead of a LinkedHashMap to represent the environment, and no longer needs a hack to save/restore the values of comprehensions. Also, added a test of the resolver. PiperOrigin-RevId: 343529575
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md