5 ms·
I tend to stay away from command line tools if they're written in Python or Ruby and have to be invoked frequently. The delay isn't big but it starts to grate.
by jurip 10y ago
I tend to stay away from command line tools if they're written in Python or Ruby and have to be invoked frequently. The delay isn't big but it starts to grate. You can avoid the startup penalty with a server solution like chg does for Mercurial, but it's yet another complication.
It's not the same in GUIs where the startup time doesn't usually dominate, but it's easier to keep the main loop spinning at 60 Hz to avoid dropping frames with a language implementation that is faster and not encumbered with a GIL.
- Godel_unicode 10y agoA common pattern here is to use multiprocessing to split off the GUI threads, then the GUI has it's own GIL. A nice side effect of this pattern is forcing one to have a clean set of interfaces between the presentation layer and the business logic. https://talkpython.fm/episodes/show/58/create-better-python-programs-with-concurrency-libraries-and-patterns https://talkpython.fm/episodes/show/58/create-better-python-...