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
Interpereter performance is too low #12609
Comments
Did you compile the interpreter in release mode? |
I also don't understand why why you need the performance. When you debug something you don't need to run the full program. |
The purpose of the interpreter is that you are trading compilation time for execution time so that you can quickly start and step through your code for debugging purposes. By definition the code will run slower, however the debug/edit loop is significantly faster in human time. |
Hi @acodervic , thanks for reporting, but we're still far from the point in which optimizing the interpreter is a good use of resources. We still need to work on to make it accessible to most platforms, and to polish its rough edges. Speed is a nice to have feature at this point. |
I think @straight-shoota suggested somewhere to do |
ok , thank for you anser. |
@acodervic are you using the interpreter compiled in release mode? It would save us all a discussion 😅 |
Bug Report
Interpereter performance is too low , less then 50%-70% of native build .
target app srouce code at https://github.com/NeuraLegion/wafalyzer.
when i it running with native build , it only took 6 s . but it runing with interperter took 5 minutes !. this is unacceptable during actual debugging
the http://127.0.0.1 is my local apache2 server . it just provides a empty page .
os : ubuntu20 Linux 5.13.0-51-generic #58~20.04.1-Ubuntu SMP Tue Jun 14 11:29:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Crystal:Using Crystal 1.6.0 (2022-10-06)
LLVM: 10.0.0 Default target: x86_64-pc-linux-gnu
thank for crystal team . please fix this . this is very important for every developer !
The text was updated successfully, but these errors were encountered: