Both the PatternMatcher and JdbcParameterUtils use String.toCharArray for processing. This will create a new char[] which needs to be collected. The same code has been rewritten to use String.charAt to reduce the overhead. Additionally unneeded object creation in the PatternMatcher has been removed as well, to reduce further objects needed to be gc'ed.