[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiled version of awk program
From: |
Bob Proulx |
Subject: |
Re: Compiled version of awk program |
Date: |
Wed, 30 Jun 2021 01:40:52 -0600 |
Peng Yu wrote:
> I am trying to speed up awk programs. But I don't find a working solution.
>
> I see this program which compiles awk code into C. But I don't know
> where its source package is.
>
> https://www.mkssoftware.com/docs/man1/awkc.1.asp
MKS Software, now PTC MKS, is as far as I know proprietary software.
I could not find a clear license statement after a search of their
site. MKS has been around a long time. There is no source available.
Although at one time I recall MKS offering a source license. But it
is definitely not Free Software.
> Does anybody know what is the current way to speed up awk programs?
Generally programs may be speeded up by using better algorithms.
Almost invariably improved algorithms result in the best performance.
Before optimizing a program for performance it is necessary to profile
the program to understand where the time is being spent. Benchmark
and profile to obtain data before any attempt at optimization.
"Premature optimization is the root of all evil." --Tony Hoare.
https://www.gnu.org/software/gawk/manual/html_node/Profiling.html
AWK is an interpreted language. Interpreted programs intrinsically
have some level of program overhead. If you think you have the best
performing algorithms then one might convert to a compiled language
such as C, Rust, Go-lang, or other efficient compiled programming
language.
Bob
- Compiled version of awk program, Peng Yu, 2021/06/29
- Re: Compiled version of awk program,
Bob Proulx <=
- Re: Compiled version of awk program, Peng Yu, 2021/06/30
- Re: Compiled version of awk program, Wolfgang Laun, 2021/06/30
- Re: Compiled version of awk program, Peng Yu, 2021/06/30
- RE: Compiled version of awk program, pjfarley3, 2021/06/30
- Re: Compiled version of awk program, Peng Yu, 2021/06/30
- Re: Compiled version of awk program, Andrew J. Schorr, 2021/06/30