The usedAsNonGenericPattern has a "Prefix" group that is not used for anything and contains a * modifier that is too broad and backtracks a lot. This perf improvement simply removes this matching group and leaves only the "Suffix" group which does not contain any backtracking modifiers.
This little change improves the DTS generation time from over 240 seconds down to only 4 seconds on my machine
I have tested this change on Android APIs from 30 to 34 and it generates the exact same output.
The
usedAsNonGenericPattern
has a "Prefix" group that is not used for anything and contains a*
modifier that is too broad and backtracks a lot. This perf improvement simply removes this matching group and leaves only the "Suffix" group which does not contain any backtracking modifiers.This little change improves the DTS generation time from over 240 seconds down to only 4 seconds on my machine
I have tested this change on Android APIs from 30 to 34 and it generates the exact same output.