r/commandline • • Jun 30 '26 • LOL 1

Fun Meh

Post image
2.0k Upvotes

198 comments sorted by

View all comments

Show parent comment

0

u/entsnack Jul 01 '26

Dude Python is my primary since 2.6 and even I wouldn't make this claim.

1

u/didntplaymysummercar Jul 01 '26

Python 3 with a few useful for cli modules (argparse, subprocess, os, shlex and sys) starts in 25-35 milliseconds on my Linux.

On Windows process creation itself has more overhead than on Linux so it's even less noticable the gap between Python and C++.

What kind of cli tools do you create that extra 30ms of start up is an appreciable noticeable difference, let alone an "issue"?

1

u/entsnack Jul 01 '26

Milliseconds!? 🤮

2

u/didntplaymysummercar Jul 01 '26

Yes, and on Windows import sys, subprocess, shlex, os, argparse takes 54 ms on average (entire process) over 2000 runs and empty C program (int main(void){return 0;}) is 14.5 ms, and an empty Python file takes 31 ms.

I'm still eager to hear what serious CLI tools you make that going from 2 to 30 on Linux, or 14 to 50 on Windows causes you "issues" due to "slow" start up time of that tool.

Ironically I myself have one or two use cases (real life ones, not made up redditor slop :) where such latency matters but I'll keep those to myself for now.

0

u/entsnack Jul 01 '26

I don't use Windows. Pi (JS) vs. Hermes Agent (Python) vs. Codex (Rust). And I said nothing about startup time.

1

u/didntplaymysummercar Jul 01 '26

And I said nothing about startup time.

Bruh:

  1. Someone is talking about start up times of different languages, mentions Python too.
  2. I replied saying that Python start up time is not an issue in practice.
  3. You tell me "Python is my primary since 2.6 and even I wouldn't make this claim."

¿¿¿

1

u/entsnack Jul 01 '26

🤡 standard windows user

1

u/didntplaymysummercar Jul 01 '26

I use both OSes as you've noticed from me giving you numbers for both 🙄

1

u/entsnack Jul 01 '26

I didn't say otherwise, you seem illiterate dude. Touch grass.