I started learning C++ recently. But when I tried to use it in Repl.it, it seemed really slow. The repl is attached to this post. Can someone please tell me why it is so slow when the code is just a basic hello world?
Hi! So, your problem could be caused by multiple factors:
- Your wifi is just bad
- The servers are lagging and you need to reload or retry in some time
- The repl server is slow, like in Java
- Your computer might be crashing or having issues
Hopefully that helped.
There are multiple reasons.
First, the C++ repl server is pretty slow itself, so try the bash language to run your C++ instead.
Second, if your computer or internet is slow, that will only make things worse.
Finally, the compiler does take some time to compile C++, but with your code, its probably negligible.