GithubHelp home page GithubHelp logo

Comments (4)

tfussell avatar tfussell commented on May 16, 2024

This and #63 are going to be significantly more time-consuming to implement than all of the the other issues. I'm focused on implementing core functionality at the moment before thinking about performance. I do understand however that performance is a major reason for using C++ for handling XLSX files in the first place. I will create a demo branch using a SAX parser in the near future. Maybe another contributor will be willing to flesh it out otherwise this may take a few months.

from xlnt.

Mercury13 avatar Mercury13 commented on May 16, 2024

IMHO, SAX is shit, it’s better to use something StAX-like.

from xlnt.

tfussell avatar tfussell commented on May 16, 2024

Hmm, I had never heard of StAX. Researching that led me to libstudxml which looks really nice and implements pull parsing like StAX. I'll just have to figure out if I can avoid loading the full XML from the XLSX during parsing to save memory.

from xlnt.

tfussell avatar tfussell commented on May 16, 2024

I was able to automate much of the necessary refactoring for this issue and #63 so I decided to go ahead and do it. With commit dadf852, parsing and serialization using libstudxml (a non-DOM XML library) is effectively at feature parity with the old DOM-based XML library so I've merged it into master.

I will note that the XML is held in several places while reading and writing an XLSX file: compressed in the ZIP archive on disk, compressed in the ZIP archive in memory, uncompressed as a string, and another copy in the std::(i/o)stringstream used by the parser/serializer. There is thus still room for improving memory usage by writing a custom stream that reads/writes compressed data directly to/from the ZIP archive. That will be a separate issue.

from xlnt.

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.