I need to completly rewrite the entire module map/tree creation/discovery, and also redo how we read the files, and determine the most performant method of applying my manual transforms, potenially try to fix up the files with TypeScript transformers instead of Regex replaces, unless Regexp turns out to be more performant. I'd like to investigate the possiblilty of moving to a Redis based que and cache for the workers and the module map as a whole.
I need to do an indepth analyis and inspection to determine the most memory and CPU hungry actions and move as much as I can to an outside of script cache without sacrificing performance.