commit | 6e7fae11cb22a41a4cd73d5dead93aa7567b5eda | [log] [tgz] |
---|---|---|
author | Taras Tsugrii <ttsugrii@fb.com> | Tue Jul 31 12:19:41 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Jul 31 12:20:55 2018 -0700 |
tree | 714f3620debf010fe8d8559908948490573f52f5 | |
parent | 58f80df1378e4f8687ca6690001577f075de2038 [diff] |
[Skylark] Move method invocation logic to MethodDescriptor. This serves 2 purposes: - better encapsulation and domain model. - opens the door to optimizations like using `MethodHandle` instead of `Method` and caching. - performs one of the optimizations mentioned above - perform `setAccessible` only once instead of on every method invocation. JMH suggests that this saves ~5% of CPU time. Next steps are: - evaluate peformance improvements for some of the optimizations listed above - make PRs to apply optimizations that seem beneficial. Closes #5704. PiperOrigin-RevId: 206805670
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds 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
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.