So I've been searching around for this particular problem and apparently I found no solutions.
There are posts on reddit about this: https://www.reddit.com/r/emacs/comments/3scsak/incredibly_slow_comint_eg_shell_compile_output_on/.
But still no solution. The problem is simple: emacs shell is really bad when you run codes that display lots of text in the shell.
I run fluids simulations and the difference between running the code via emacs' shell and VS code's shell is like day and night. This is what I get running the same test case (1D so not very intensive)
- VS code embedded shell: 10 seconds.
- Emacs shell: more than 1 minute and still running....
Anyone experiences issue when compiling, running code that outputs lots of text? I need to see the outputs as the code runs.