On 4/16/07, Steve King steve@narbat.com wrote:
Allan, a question about that: When a command runs, does it spawn a new OS process or does it run in a thread within the TextMate process? It seems that if you're running any command that starts with a shebang (#!) line you'd have to fork a new process to load the specified command interpreter. If that's so, then it's *way* too much CPU and disk overhead to do every time you hit space!
I think you may be over-estimating the cost of forking. I just did a little test, and my G4 Powerbook can spawn and reap 90,000 processes per second. Your computer is probably faster than mine, and I wonder how many times you press space every second. :-)
Robin