Skip to content

Reduce binary size #2224

@wjones127

Description

@wjones127

We might want to reduce our binary size so it's easier to install and takes less space in packaging.

Here are some things we can do:

  • Move TFrecord utilities into a separate package
  • Reduce scope of generics. There's a lot of structs in the lance-index code base that are generic over float type that likely don't need to be.
  • Try to reduce number of panics (each panic stores the location and message in the binary)
  • Change panic behavior to abort on panic
    • This is probably a bad idea, it would made panics much harder to debug

See: https://github.com/johnthagen/min-sized-rust

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions