Skip to content

[perf][P2] mapfile store side residual (~3.3x after #670) #680

Closed

Description

@caomengxuan666

Follow-up of #663 (PR #670 took input split+bulk store: 100k bench 243ms->174ms vs GNU 52ms). Remaining ~3.3x is store-side per the #663 report: per-element quote allocs (quote_array_value ~8 allocs/scans per element via unconditional replace/to_string), the typed-cell double-keep, and the whole-input encode->decode roundtrip in mapfile_input_for_command->split. Each is its own slice. Re-measure first (numbers above are from the #663 report, same-tree release, 100k seq lines).

Activity

  1. caomengxuan666 commented on Oct 16, 2026

    @caomengxuan666
    MemberAuthor

    Slice up as PR #686 (branch perf/issue680-mapfile-store): plain-value quote fast path (single alloc; markers/non-ASCII fall through). seq100k mapfile ~181ms->~99ms (~1.8x); matrix 25/26. Gate queued behind #681.

  2. caomengxuan666 commented on Oct 16, 2026

    @caomengxuan666
    MemberAuthor

    Slice landed as #686 (squash-merged 5661e01). seq100k mapfile ~181ms->~99ms (~1.8x); matrix 25/26; gates identical (niu 50/49 = known load flake, green on branch). Typed-cell double-keep + encode roundtrip stay open here.

  3. caomengxuan666 commented on Oct 17, 2026

    @caomengxuan666
    MemberAuthor

    Second slice up as PR #688 (branch perf/issue680-mapfile-store2): skip whole-input encode roundtrip for ASCII/carrier-free input (single alloc per segment). seq1M -6%. 4 contract tests incl. carrier fallthrough pinned to GNU output. Gate running.

  4. caomengxuan666 commented on Oct 17, 2026

    @caomengxuan666
    MemberAuthor

    Second slice landed as #688. seq1M -6%; 4 contract tests; gates identical (niu 8=8 — note the product set shrank 49->8 since #662 era: engine fixes cleared 41 product failures). Typed-cell double-keep stays here only if it ever pays; closing as done.

  5. caomengxuan666 commented on Oct 17, 2026

    @caomengxuan666
    MemberAuthor

    Closed per previous comment (#686 + #688 landed; typed-cell double-keep showed no payable delta — reopen with numbers if it ever does).

  6. added
    performance
    P2-medium
    on Oct 17, 2026
  7. added 2 commits that reference this issue on Oct 17, 2026
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

    P2-mediumperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions