|
|
|
|
|
by asterite
3965 days ago
|
|
The current HTTP server is pretty fast. Did you try compiling/running your program with the `--release` flag? It's explained a bit here: http://crystal-lang.org/docs/using_the_compiler/index.html Crystal is faster than Go in some cases (mostly because we use LLVM and it optimizes really well), but right now Go has faster context switches between goroutines (in our case fibers) and in general faster concurrency (for example it distributes the goroutines across multiple threads, we are using one for now). But improving these is definitely on our roadmap and should be doable. More good news is that we are using Boehm GC and didn't spend a lot of time optimizing on our side (rather than just relying on LLVM), so a custom GC and more optimizations (like maybe escape analysis) could improve performance even more. |
|