[GRADLE-3368] CachingPatternSpecFactory uses a lot of memory Created: 03/Dec/15 Updated: 03/Dec/15 Resolved: 03/Dec/15 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 2.10-rc-1 |
Type: | Bug | ||
Reporter: | Sterling Greene | Assignee: | Lari Hotari |
Resolution: | Fixed | Votes: | 0 |
Known Issue Of: |
Description |
https://discuss.gradle.org/t/cachingpatternspecfactory-does-occupy-to-much-heap-space/12932 The memory usage problem is caused by duplicate String instances in all of the RelativePath instances. The fix is to use the StringInterner based on Guava's WeakInterner to de-duplicate the String instances (path segments) that are referenced by the RelativePath instances. |