-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coconut compiler constant overhead 170 times the overhead of the python interpreter #764
Comments
Note that the vast majority of what you're seeing there is constant overhead:
Compiling a large file is going to take a bit anyway, so an extra 1-2 seconds of constant overhead won't make a huge difference there, but will dominate these sorts of micro benchmarks. What size of compilation jobs are you generally doing? Is it actually the constant overhead you're showcasing here that you're struggling with? |
I am working with tiny files; the above examples are an excellent representation of what I am working with because my workflow involves testing snippets of code in the REPL frequently. I also use files with snippets of code I would like to test; they are not one-liners but they are still very short. The constant overhead completely breaks my fast-paced development cycle. The 5x difference between our benchmarks likely comes from the fact that I work on a ten year old thinkpad; I suppose on your machine the extra overhead does not feel quite as bad. Note that the difference between the python code and the coconut code in the above benchmark is a factor of 170 which in any case is very bad. |
It looks like there was an issue where parsing functions specifically would introduce substantially greater constant overhead; that issue should be fixed now as of
|
Thank you for writing coconut. I really like the language, but being productive is hard since the compiler is so slow.
The text was updated successfully, but these errors were encountered: