jbrooksuk / Sublime-Evaluate

Selection evaluation in Sublime Text

Home Page:https://james-brooks.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plugin is not working for large sselections

alqershi opened this issue · comments

Hi All,

when I try this plugin on a few selection, it is working fine. However, when I apply it on large selections like 600,000 selections, sublime stops responding and nothing is happening. I'm running a windows machine.

can this be solved?

Thanks all,

Are you doing shell eval or python eval?

I guess it's because Sublime is spawning too many threads to evaluate your snippets. Current setting IIRC is Sublime creating as many threads as your codeblock.

On the other hand, since Sublime, as an editor, is recording all your changes, your huge evaluation will still create huge mem/cpu usage, which is highly not recommended. IMO, even if you are typing with 600k cursors, it will be extremely slow.

So my suggestion will be that you run the evaluation in a proper way (from terminal) when you have more than 3000 codeblocks.