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
{{ message }}
Repository navigation
40% CPU and Gigs of memory used parsing a map #20279
I have a large map. That appears to make TypeScript crazy. I'm not sure if there's a way to disable processing on a per file basis. This issue does not happen when using JSON instead of a map.
Activity
mjbvz commentedon Nov 27, 2017
From KuromiAK (@KuromiAK) on November 26, 2017 0:28
Change the code in this way seems to help?
mjbvz commentedon Nov 27, 2017
From bootstraponline on November 26, 2017 3:9
This helped the most. I'm not sure what causes gigs of memory usage. Maybe giant arrays in the constructor is an edge case.
mjbvz commentedon Nov 27, 2017
I confirmed that the TS Server process has the high cpu usage. The server logs don't have any helpful info