Large amount of memory churn from continuous regex recompilation
ChiefArug opened this issue ยท 1 comments
Here:
You use String#matches to check against a regex. Instead of doing this, you should precompile the pattern using Pattern.compile and then match against that.
Spark allocation profiler profile: https://spark.lucko.me/6iBBfT022g?hl=786
The highlighted line is 48mb

Neoforge 1.21.1, playing Craftoria on a server. The profile is a client one.