Skip to content

Streaming parser #5

@aseigo

Description

@aseigo

A streaming parser would allow processing large calendar files with lower memory usage, and would work nicely with streaming data e.g. from over the network.

The existing parser could be turned into a streaming parser by returning a continuation that when called would pick up where the parser left off whenever an end was reached before parsing is complete. This could then be used with Enum.reduce over multiple chunks of data. Functions in the parser that match on <<>> would be candidates for returning such a continuation.

The continuations would need to "bubble up", but that probably Just Works out of the box?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions