Giter Site home page Giter Site logo

Comments (5)

hwchen avatar hwchen commented on June 15, 2024 3

Just wanted to say that a lazy iterator would have been super useful for my use case.

I just needed to compare the headers (first row) for 13 sheets, each with (1,000,000 x 13) cells. I ended up having to load each complete range just to get the first row.

Fortunately, Rust and this library are pretty fast, it took about 2 minutes for what appears to be a 1G file.

Let me know if I missed something, perhaps there was a way for me to get the info I needed without loading everything.

from calamine.

bbigras avatar bbigras commented on June 15, 2024

Do you think it would make sense to also have a non-reference iterator? I mean an iterator that would allow us to take ownership of the DataType without having to clone it. Maybe something like Vec::drain.

There was also Idiomatic way to take ownership of all items in a Vec? on the forum.

EDIT: I realized before going to bed that it wouldn't make sense with the xml shared string concept.

from calamine.

tafia avatar tafia commented on June 15, 2024

I realized before going to bed that it wouldn't make sense with the xml shared string concept.

Well, for this we could probably return a Cow with only strings being Cow::Borrowed ... even if it probably makes little sense to borrow the other primitives (pointer size anyway).

from calamine.

tafia avatar tafia commented on June 15, 2024

The implementation might depend on the actual file type (xlsx, xslb, ods etc ...) which one was yours just for info?

from calamine.

hwchen avatar hwchen commented on June 15, 2024

Mine was xlsx.

from calamine.

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.