Various small fixes and migration steps for Java 8.
Removed all unused import statements.
Document Location and add a CachedPattern class to cache regex patterns.
The reasoning behind adding CachedPattern is simple, FastDMM currently re-compiles and re-builds it's patterns each time we want to match and compare something, which is quite expensive.
Doing it this way should make it even faster, once we implement it.
The reasoning behind adding
CachedPattern
is simple, FastDMM currently re-compiles and re-builds it's patterns each time we want to match and compare something, which is quite expensive.Doing it this way should make it even faster, once we implement it.