Code Monkey home page Code Monkey logo

Comments (5)

hadley avatar hadley commented on June 15, 2024

Sounds like this is going to be a lot of work, and we'll need to implement quite different strategies for mmap files and connections. I think this means that connections should be at least a 0.2 feature.

from readr.

romainfrancois avatar romainfrancois commented on June 15, 2024

Sure. I'll focus on mmap for now but keeping in mind extensibility. mmap is somewhat orthogonal to the processing. mmap is just a way to get a char*. The big win of mmap is that we get at once a pointer for all (or at least a big chunk of the data), for other connections I'll have to either do things char by char, or line by line using Rconn_fgetc or something.

But anyway, if we move this to a 0.2 version, then perhaps this gives me time to worry about connections upstream in Rcpp implementations.

from readr.

hadley avatar hadley commented on June 15, 2024

Sounds good to me. I wonder if there's any support for mmapped gz/bz2 files. That's going to be a pretty common use case in my experience.

from readr.

romainfrancois avatar romainfrancois commented on June 15, 2024

I don't think so, which is a reason why I'd want to be able to consume a connection through R internal api.

from readr.

romainfrancois avatar romainfrancois commented on June 15, 2024

Apart from correct handling of the connection push back #19 I've leveraged what I need from the connection api.

from readr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.