Giter VIP home page Giter VIP logo

Comments (3)

clarketm avatar clarketm commented on May 18, 2024 2

Thanks for the quick response and detailed explanation. DataTables is a good full-featured library, and perfect for your use-case. But with 31,000+ lines of code in its most succinct distribution, it's difficult to say it's efficient for smaller projects. Compared to TableExport, with a mere 500 lines unminified (including descrptive comments, structural whitespace, and compendious JSDoc documentation), it's targeted for more modern, agile, and dynamic applications (well, at least that was my original inspiration for the library :)) For future reference, research the concept of obfuscation which can help with sharing the context of an issue/problem without leaking sensitive data.

from tableexport.

clarketm avatar clarketm commented on May 18, 2024

@slowaways - unfortunately, this is not possible with TableExport out-of-the-box. To be honest, TableExport, and client-side parsing, blobs, etc. in general, is not the most performant; it would be interesting to see benchmarks for a feature such as this after it is implemented.

Just to make sure I understand exactly what you are requesting, you basically want to, instead of parsing the table and saving the blob directly to the DOM element, have the ability to export to an external file and, when the user wants to export the table to xlsx, xls, csv, or txt, read the data from the external file?

As it stands, TableExport is a strict client-side library and I might have trouble justifying file writing from the browser. Better would be to use a Storage API like LocalStorage.

If we start talking server-side, with Node for example, this would be more than feasible, but then we would be talking about a separate release channel, with a whole set of additional dependencies.

Let me benchmark the potential performance improvements using some of the popular Storage APIs like LocalStorage, IndexedDB, etc. and see what sort of performance boost we can achieve. Would it be possible to share your source code or at least some of the raw data you are working with (at the very least - the unit size) so that I can get a realistic sample for testing?

from tableexport.

rodrigoslayertech avatar rodrigoslayertech commented on May 18, 2024

"... read the data from the external file?"
Yes

There are currently 1116 rows and 1031 columns. My JSON data contain sensitive data of users as passwords, identity documents number, etc. and are data of research scientific. I can't share it.

I replace your library for another called DataTables because is more faster to export:
https://datatables.net/extensions/buttons/examples/styling/bootstrap.html

from tableexport.

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.