open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

Option to allow fast running (instead of line by line running) of code.

Open ZGainsforth opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Interpreter will create code efficiently and then start running it. As it runs, it scrolls through the code line by line to show you where it is during the run. For code that runs quickly and may have a large number of loops, the time to run can be substantially larger than it should be. For example, minutes to hours, to loop through code searching a directory structure for specific files, but if I copy paste the code into a python script, it only takes a few seconds. The latter case doesn't require continual updates to the terminal window.

Describe the solution you'd like

A command line parameter -r or --run_script would run scripts as scripts instead of within the terminal window. The code would still print, but then it would spawn a thread and run in the background. The final output would then be printed. This would not not show line by line debugger-like progress.

Describe alternatives you've considered

No response

Additional context

No response

ZGainsforth avatar Oct 18 '23 20:10 ZGainsforth

i had a similar request. #678 i closed it in favour of this one as this was first.

koenhandekyn avatar Oct 23 '23 18:10 koenhandekyn

+1

This is a huge problem for me as well. Because it can slow a trivial code by a factor of 100 because of console IO bottleneck (or something else related to interpreter mode)

WrathOfGrapes avatar Nov 07 '23 11:11 WrathOfGrapes

Closing this stale issue. Please create a new issue if the problem is not resolved or explained in the documentation. Thanks!

MikeBirdTech avatar Mar 18 '24 19:03 MikeBirdTech