Skip to content

Context's overlay-rebase depth (MaxDepth) is fixed, with no way to configure it #8967

Closed

Description

@sledorze

Context.add rebases its overlay chain into a flat map once depth reaches MaxDepth, a fixed constant of 8, with no way for application code to override it per context.

A rebase costs O(base size); a lookup walks up to depth overlay entries before falling through to the base. The right threshold depends on base size and how read-heavy a context is, which varies by application and isn't knowable by this module.

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