Skip to content

[Performance #727] Audit strings, parsing/formatting and file I/O for short-job Python comparisons #747

Closed

Description

@godofecht

Parent: #727. Related: #745.

Short practical programs are often dominated by text and I/O rather than numerical kernels. Audit string construction/concatenation, integer/float parse/format, buffered file read/write, line scanning and JSON-like/token parsing workloads.

Profile allocation/copies, encoding checks, syscall/buffering behavior and formatter/parser dispatch. Keep semantics and error handling explicit; do not win by omitting validation Python performs.

Acceptance: #728 has representative text/I/O end-to-end rows; common linear scans avoid per-character/per-token heap allocation; buffering is competitive with Python's standard I/O; material losses become focused issues; Flow wins or ties Python on supported one-shot transformation workloads.

Activity

  1. godofecht commented on Oct 1, 2026

    @godofecht
    ContributorAuthor

    Reference implementation against the retired Python compiler: tag archive/perf/747-string-io (b8fbbf2). Useful as a design starting point for the Flow implementation.

  2. godofecht commented on Oct 6, 2026

    @godofecht
    ContributorAuthor

    Implementation update (2026-10-06): draft PR #1401. Fixed std.string line scan for CRLF and bare CR and added mixed-line-ending regression tests. Broader string parsing/I/O performance audit remains open. The PR is draft because full local Flow/build validation has not been performed; #1402 additionally requires regenerated bootstrap C. No issue is being closed merely because a patch exists.

  3. 56 remaining items

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions