diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-29 18:17:54 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-11-30 17:31:32 +0100 |
commit | 4ca8744da021642d9f943224950482b3344cf089 (patch) | |
tree | 8e84cd866737b2c3bdffe2620d200bd97c7bd3e9 /src/dotty/tools/dotc/printing/RefinedPrinter.scala | |
parent | bced61d0bb58e8e4da1c7e8ececb1c24b5e81843 (diff) | |
download | dotty-4ca8744da021642d9f943224950482b3344cf089.tar.gz dotty-4ca8744da021642d9f943224950482b3344cf089.tar.bz2 dotty-4ca8744da021642d9f943224950482b3344cf089.zip |
Avoid too eager computation in reporting.
I noted a slowdown of about 25% (66sec -> 81sec) when compiling dotty even
after the subtype optimization (before it was 117sec).
I tracked it down to the traceIndented fix which avoided questions to be evaluated
twice. But it also caused the question to be evaluated
Making the val lazy fixed the problem.
Diffstat (limited to 'src/dotty/tools/dotc/printing/RefinedPrinter.scala')
0 files changed, 0 insertions, 0 deletions