tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 31 forks source link

Julia parser takes disproportionally long to compile on windows #97

Closed henriqpsantos closed 4 months ago

henriqpsantos commented 1 year ago

I'm using clang on Windows 10, other parsers are very fast to compile. This parser takes a very, very long time, and I can't be sure it's not stuck. I don't really know how I can provide any more information but I'm happy to provide what you need.

savq commented 1 year ago

Yep, the parser is just slow because the grammar has lots of conflicts.

Right now I'm more interested in making the resulting binary smaller (it's huge), but hopefully that will also reduce compilation time.

RubixDev commented 1 year ago

I noticed this when trying to compile to Wasm with emscripten emcc, my computer kills the process after some time because there is no RAM left.

maxbrunsfeld commented 4 months ago

I think this is fixed on the master branch. I'm going to close this out because the wasm compilation now takes 30 seconds. Still slow, but not unusable anymore.

Let me know if there are still problems compiling on windows.