diff options
author | Nathan Harmata <nharmata@google.com> | 2016-04-29 21:44:30 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-05-02 09:10:00 +0000 |
commit | 19350de0caaafbe3c6800c09d520d3ced82d87f9 (patch) | |
tree | aab5f7a8b5d26b0f78b36371861cc343793ad31a /src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java | |
parent | 57cdd9af36b7dfb3f6bd5da26e0aff4fbc544a3a (diff) |
Memoize the OptionsData per BlazeCommand.
This saves the cost of (1) collecting all Options classes and (2) getting all their @Option annotations. Note that there is no savings on reflection costs, since that's already memoized internally by OptionsParser.
This saves ~250us per Blaze invocation.
--
MOS_MIGRATED_REVID=121153156
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java')
0 files changed, 0 insertions, 0 deletions