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
Performance #344
Comments
@ArneBachmann See the FAQ entry on how do I achieve maximum performance. If you just use In the long run, #299 is my current best bet for how to improve base performance, though it'll be a big undertaking. |
I'm reaching 15s per compile for 900 LOC. It becomes harder and harder to test and debug. Splitting the code into many different files is no option either, due to #320 |
@ArneBachmann Yeah, I'll definitely prioritize trying to get some work done on this front as soon as I get a chance, and #320 is on my short list of things to do before the next release. |
@ArneBachmann Try cloning and installing the new computation-graph branch and see if it helps with your performance issues! If you do, definitely comment on the computation graph pull request and let me know how it worked out for you. |
Hint: to update to a development branch, you need to
Replace calls to In my case this leads to:
|
Any hint on how to install the developer version? Is there a guide in the official docs somewhere? |
@ArneBachmann Coconut doesn't support installation via |
Just tried installing that on the train at 200km/h downloading all kinds of dependencies that the mainline coconut doesn't require, and saw that it was actually installing into Python 2, while I used to install coconut always into Python 3. Anyway it somehow worked, but I couldn't detect any speed improvements so far. It takes 30 seconds to compile a 1000 lines coconut file. I'll keep you posted. |
@ArneBachmann Thanks for trying it out! If you want to install it locally on Python 3, try |
That did the trick. I'm not entirely sure, but coconut feels even slower now :-( it was 10s before, and is 20-30s now I think. Should I try pypy instead? Had good experience with in in the past. |
Ah, seems like |
Sorry for not being very constructive, but the Coconut compiler|s performance is somewhat abysmal.
For a 500 LOC tool it takes about 10 seconds on my Linux laptop, and 15s on my 4 years old Windows PC.
This is simply too slow for the typical Python REPL testing/prototyping workflow.
Any ideas on how to improve on speed?
The text was updated successfully, but these errors were encountered: