• Peter Wen's avatar
    Android: Make errorprone faster · b8dc783e
    Peter Wen authored
    Curtesy of cushon@:
    There are javac flags that tell it to stop at a particular compilation
    phase: -XDshould-stop.ifNoError=FLOW should allow Error Prone to run but
    stop the compilation before code is generated.
    
    4 seconds faster for chrome_java errorprone. (55s -> 51s).
    5.2s faster for Base Java Signature Change (153.6s -> 148.4s).
    Saves 192.9s elapsed time for Base Java Signature Change.
        4552.2s -> 4359.3s
    
    Bug: 906803
    Change-Id: I0708cafea2f95ba50df7697d753ea3e930d1330c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2134192Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
    Commit-Queue: Andrew Grieve <agrieve@chromium.org>
    Auto-Submit: Peter Wen <wnwen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#755906}
    b8dc783e
compile_java.py 25.5 KB