google / google/kafel

Reduce libkafel.so size

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
366
Forks
59
PR merge metrics
No merged PRs in 30d

Description

Currently `libkafel.so` takes 440KiB (`x86_64`, release, stripped) which seems superfluous.

On top of that, it has 7122 relocations and relocation definitions themselves take 167KiB. This has runtime cost as well.

Proposal:

* exploit redundancy in the data set to reduce the footprint;

* get rid of relocations — instead of storing string pointers in tables use integral offsets in a string pool. The later is cumbersome to do manually, use code generation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.