Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function chooseEntries

    • The candidates worth shipping: those whose p is at least their break-even, best expected net first, kept while their entry bytes fit under capBytes. A candidate that does not fit is skipped and a smaller one may still go. A path is chosen once. A candidate with a p outside 0 to 1 or a negative or non-finite size is never chosen. With z above 0, a candidate that has a weight is judged on the lower confidence bound of its p (the Wilson bound at z), and the order follows the net at that bound; one with no weight keeps its p.

      Parameters

      • candidates: readonly EntryCandidate[]
      • options: { capBytes: number; z?: number }

      Returns EntryCandidate[]