Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow eviction of cached Scalafix instances
Scalafix instances can be memory-consuming (PrintStream's static 8k BufferedWriter allocations are wasteful and hard to remove for example), so this allow eviction in case of memory pressure. To compensate for the added complexity, the implementation was simplified. * Values are now always updated (even if they haven't changed). This probably does not change much performance-wise, as we are trading throwing an exception (costly) against a SoftReference instanciation and the update in the low-cardinality ConcurrentHashMap. * SAM conversion is used now that sbt 0.13 / Scala 2.11 are no longer supported.
- Loading branch information