lance-format/lance
refactor: use LazyLock to initialize Field and Schema once
Ouverte
#8 244 ouverte le 4 août 2026
good first issue
Métriques du dépôt
- Stars
- (6 582 étoiles)
- Métriques de merge PR
- (Merge moyen 6j 1h) (219 PRs mergées en 30 j)
Description
In many places we output the same set of fields and/or schema per method call, or even per batch. This can be made cheaper if we initialize them once via a LazyLock and wrapping in an Arc.
Here's an example where we construct a schema per query: