tursodatabase / tursodatabase/libsql
`libsql_experimental.a` is very big
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
For some reason, the C bindings generate a whopping 48 MB library, which is just too big:
-rw-r--r-- 1 root root 48M Nov 1 10:29 /host/libsql/libsql_experimental.a
For context, the npm package is 4 MB in size:
https://www.npmjs.com/package/@libsql/linux-arm64-gnu?activeTab=code
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the C binding build and measuring libsql_experimental.a, then compare it with the 4 MB npm package linked in the issue. Trace how the C bindings produce the static library and identify what contributes to its 48 MB size. Done means reducing the library size, with the resulting artifact size and build behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100