TS is slow when parsing elixir files.
See original GitHub issueWhen i open a elixir file i get TS took 356ms to parse document, will be disabled for current file.
It happens with small or larger file.
is this because i’m on a m1 mac?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Speed up parsing a text file - Questions / Help - Elixir Forum
I recently found String. split to be much slower than a regex for parsing lines of input. mix profile. fprof is easy to...
Read more >Processing Large CSV files with Elixir Streams - Poeticoding
But I dont have any success to perform a fast read of file. Stream seems very slow when comparing Elixir time ( about...
Read more >The 10 Most Common JavaScript Issues Developers Face
If you need help figuring out why your JavaScript isn't working, consult this list of the 10 most common JavaScript issues from a...
Read more >Moving from Webpack to esbuild on Phoenix | OpenFn/docs
Going through our webpack.config.js file I can see that it: Conditionally provide sourcemaps depending on the environment. Uses babel to parse ...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
systemPrefs with at least two files" status:RESOLVED resolution:OBSOLETE ... Bug:300598 - "dev-perl/XML-Parser: ebuild may silently fail with distcc" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the explanation @jonatanklosko !
Yup, I also documented that briefly here.
And even in some particular cases where I was tempted to make the AST more specific, I quickly came up with scenarios where it would break. For example the “when” operator in stab clauses could be a more specific guards node, but due to macros it can really be used anywhere and it’s hard to tell, like in
match?(x when x == 1, 1)
(and it would be hard to unify withdef
s anyway).