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
The isLastNonWhitespaceCharCloseBrace regex in StatementsStructurePrinter is incredibly slow. When printing this library's declaration file, it spends 9% of its time executing this regex.
Edit: It actually doesn't make sense it's taking so much time... I may be misreading chrome's profiling tools (I'm used to using dotTrace for c#). It still would probably be better to do a non-regex solution for this.
Edit 2: On another run this regex only used 1% of the time. I guess I need to run the profiler multiple times to get a more accurate picture.
The text was updated successfully, but these errors were encountered:
The
isLastNonWhitespaceCharCloseBrace
regex inStatementsStructurePrinter
is incredibly slow. When printing this library's declaration file, it spends 9% of its time executing this regex.Edit: It actually doesn't make sense it's taking so much time... I may be misreading chrome's profiling tools (I'm used to using dotTrace for c#). It still would probably be better to do a non-regex solution for this.
Edit 2: On another run this regex only used 1% of the time. I guess I need to run the profiler multiple times to get a more accurate picture.
The text was updated successfully, but these errors were encountered: