Comments (5)
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.
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.
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.
The implementation might depend on the actual file type (xlsx, xslb, ods etc ...) which one was yours just for info?
from calamine.
Mine was xlsx
.
from calamine.
Related Issues (20)
- Associating data and formula
- Bump quick-xml dependency
- How to get "sheet" directly from buffer of bytes? HOT 4
- "dates" feature is not accurate enough, maybe HOT 1
- No entry panic when dealing with invalid relationship in xlsx file
- WebAssembly support HOT 1
- Bump zip dependency
- Error, excel files missing R Attribute HOT 5
- Worksheets not sorted when parsing an xls file HOT 11
- Performance issue with the try! macro HOT 4
- RangeDeserializer not works with serde(rename)+serde(deserialize_with) HOT 1
- some string formula cells are lost HOT 1
- Weird performance difference in wasm32 target HOT 3
- range end index 2 out of range for slice of length 0 HOT 2
- cannot read value some time at the same cell HOT 2
- Values are the same in xls, but are different in calamine HOT 4
- [VBA] CodePageRecord parsing fails
- [VBA] VBA written in Shift-JIS cannot be decoded correctly HOT 1
- Incorrect indexing when merged cells are present HOT 1
- Cannot open workbook: Xlsx error: Unexpected end of xml, expecting '</sst>'. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calamine.