ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.87k stars 514 forks source link

Improve filter performance by compiling the regex patterns upfront #379

Open m-van-tilburg opened 8 months ago

m-van-tilburg commented 8 months ago

DefaultPropertyFilter allocates quite some memory because it uses String.matches(String regex), this will compile the same regex String over and over again. Compiling the regex patterns upfront would be faster and allocate less memory.