Skip to content

Improve filter performance by compiling the regex patterns upfront#379

Open
m-van-tilburg wants to merge 1 commit intoulisesbocchio:masterfrom
m-van-tilburg:improve_filter_performance
Open

Improve filter performance by compiling the regex patterns upfront#379
m-van-tilburg wants to merge 1 commit intoulisesbocchio:masterfrom
m-van-tilburg:improve_filter_performance

Conversation

@m-van-tilburg
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant