What’s the Best Language for Quickly Parsing /proc/pid/stat Files?

0
0
Asked By TechyTomcat23 On

Hey everyone,

I'm looking to gather values from the /proc/pid/stat file for any given PID and store these values in a file for later use. I usually work with Bash and Python, but I'm wondering if they are efficient enough for this task. I've thought about using Perl but haven't dabbled in it yet. What language would you suggest for this job? Appreciate any insights you have!

2 Answers

Answered By SillySpoon88 On

When it comes to performance, the I/O process usually takes the longest time, so feel free to use whichever language you're comfortable with. You can always optimize later if you notice any real performance issues.

Answered By WittyWaldo99 On

If you’re considering languages, give Awk a shot. It’s great for this kind of text processing and should be pretty efficient!

CuriousCat77 -

Definitely, Awk is super handy for quick text parsing!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.