You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gummy currently does the matrix inversion on the funsubs data on load and once an hour. On top of that, gummy currently uses a for loop to test each of the possible substitutions. This is inefficient as it means running through the string multiple times.
The best approach would be to precalculate the funsubs only once and precompile a single regex that finds the various funsubs. This would speed up the calculation and reduce wasted overhead.
The text was updated successfully, but these errors were encountered:
One thing worth looking at is to create a cache folder with the computed classes. When a file is needed in a given line, it checks a memory cache to see if that file has already been loaded. If not, the lines are loaded (maybe it's time to grab File::Slurp?) and the cache is held in memory until the line is finished so %pony, %pony, %pony doesn't load the pony file 3 times.
Gummy currently does the matrix inversion on the funsubs data on load and once an hour. On top of that, gummy currently uses a for loop to test each of the possible substitutions. This is inefficient as it means running through the string multiple times.
The best approach would be to precalculate the funsubs only once and precompile a single regex that finds the various funsubs. This would speed up the calculation and reduce wasted overhead.
The text was updated successfully, but these errors were encountered: