This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
-sourcepath
to improve compilation speed (#99)
There are multiple problems with the previous approach of scanning the current project and including each and every file to linter javac. * It takes a long time since every source java file in the current project is recompiled with every save. * The command line may become "too long" (see #38) * It consumes a lot of computer resources (CPU, memory etc) These problems increase with the number of source files. Using sourcepath will let javac find the required sourcefiles by itself, greatly reducing the number of source files it needs to recompile. This is one of the things we need to make in order to resolve #98. It is still not optimal. Javac does not include any caching of the files it compiles, so saving the same file twice (without editing it) will recompile it twice as well as any java file referenced by it. In this commit I also: * Added ordering to the config variables (I really wanted the sourcepath option to be next to the classpath option). * Moved all `if (@verboseLogging)` to the `@_log` method * Some spacing and cleanup
- Loading branch information
Showing
2 changed files
with
79 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters