Skip to content

[IMP] Lucene: initialize configured accelerated codecs once #2616

Description

@nvzm123

Problem

Parameterized accelerated-codec constructors currently delegate through constructors that install a default vectors format, then immediately replace it with the requested format. This performs redundant initialization and can trigger avoidable side effects.

Proposed change

Have each parameterized constructor call FilterCodec directly and initialize exactly one vectors format with the requested parameters. Preserve every public constructor, codec name, delegate, default, and persisted format.

Apply this narrowly to current main; do not restore the native-buffer implementation reverted by #2597.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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