Skip to content

bird2, bird3: filesize optimization#517

Merged
PolynomialDivision merged 1 commit into
mainfrom
bird-filesize
Apr 27, 2026
Merged

bird2, bird3: filesize optimization#517
PolynomialDivision merged 1 commit into
mainfrom
bird-filesize

Conversation

@pktpls
Copy link
Copy Markdown
Contributor

@pktpls pktpls commented Mar 6, 2026

Kompiliert Ja/Nein: mipsel_24kc & x86_64 snapshot
Läuft live Ja/Nein: mt7621 @ lause, x86/64 snapshot in VM

Beschreibung deiner Änderungen:

-rw-r--r--. 1 user user 12714539 26. Jan 22:33 tmp/images/lause-core.bin
-rwxr-xr-x    1 root     root       1071076 Jan 14 11:21 /usr/sbin/bird
-rwxr-xr-x    1 root     root         68328 Jan 14 11:21 /usr/sbin/birdc

-rw-r--r--. 1 user user 12649003 26. Jan 22:25 tmp/images/lause-core.bin
-rwxr-xr-x    1 root     root        872884 Jan 26 00:43 /usr/sbin/bird
-rwxr-xr-x    1 root     root         68328 Jan 26 00:43 /usr/sbin/birdc

bird3 mipsel_24kc difference:

  • 65536 squashfs image (might be 131072 sometimes, it depends on the exact filesystem size and squashfs block boundary size)
  • 198192 bird binary

On different architectures, the difference will be bigger or smaller.

cc @PolynomialDivision

-rw-r--r--. 1 user user 12714539 26. Jan 22:33 tmp/images/lause-core.bin
-rwxr-xr-x    1 root     root       1071076 Jan 14 11:21 /usr/sbin/bird
-rwxr-xr-x    1 root     root         68328 Jan 14 11:21 /usr/sbin/birdc

-rw-r--r--. 1 user user 12649003 26. Jan 22:25 tmp/images/lause-core.bin
-rwxr-xr-x    1 root     root        872884 Jan 26 00:43 /usr/sbin/bird
-rwxr-xr-x    1 root     root         68328 Jan 26 00:43 /usr/sbin/birdc

difference:
 -65536 squashfs image
-198192 bird binary

Signed-off-by: Packet Please <pktpls@systemli.org>
@PolynomialDivision
Copy link
Copy Markdown
Contributor

mega gute idee!

@PolynomialDivision PolynomialDivision merged commit 6619609 into main Apr 27, 2026
5 of 7 checks passed
@pktpls pktpls deleted the bird-filesize branch April 27, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants