Does AWK uses a lot of processing power? If so, is there a better scripting language to do it? Or should I do it in C itself (where rest of my code is).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends on what you’re telling it to do. Most of the work is passed to the regexp engine, which should be similar, no matter what language you use.
Now if you’re using an awk script from inside a C program, and you have the resources to just implement the functionality in C too, you’re best off doing that. You’ll avoid the process creation/termination + communication overhead (which may or may not be a big part of the performance hit you’ll get).
For more information, tell us more about your script!