Skip to content

Can the executable size be made smaller #113

Description

@9ao9ai9ar
$ ls -lHSh /usr/bin/{awk,grep,mawk,rg} ~/.local/bin/frawk
-rwxr-xr-x. 1 user user  43M Sep 24 09:19 /home/user/.local/bin/frawk
-rwxr-xr-x. 1 root root 4.3M May 23 08:00 /usr/bin/rg
-rwxr-xr-x. 1 root root 747K Jan 24  2024 /usr/bin/awk
-rwxr-xr-x. 1 root root 175K Jan 21  2024 /usr/bin/mawk
-rwxr-xr-x. 1 root root 167K Jan 24  2024 /usr/bin/grep

frawk, when fully stripped, is still an order of magnitude larger than ripgrep, a similar Rust CLI program that is already an order of magnitude larger than traditional UNIX CLI tools. The large size gives the impression that the program is bloated, even more so when my benchmark shows that it is slower than mawk by some margin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions