Skip to content

small suggestions for enhancement #12

@Laeeth

Description

@Laeeth
  • better examples of how to do something useful using the stream parser with real data. you could use Twitter feed, or for example the metadata from Quandl:
    http://www.quandl.com/api/v2/datasets.json?query=*&source_code=SEC&per_page=300&page=1
    I would submit my own use, but I am not that happy with it as it is too ad hoc.
  • stream parser does not take the kind of range returned by byLine (and its faster versions) as an input (I presume it doesn't work with byChunk either). since working with large files one often won't want to read the whole thing in to memory at once, it would be helpful to have examples of how to handle this well. (mmfile seems to be slow in many cases).
  • wrappers to do the following:
  • take JSON stream as an input and return a new JSON stream filtered based on query criteria (for example filtering the Twitter stream by topic, or selecting only data for certain securities from the Quandl JSON)
  • read JSON stream and populate an array of structs (similarly to what you have in vibe.d) using either built-in allocation or pre-allocated buffer

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