Giter Site home page Giter Site logo

Comments (4)

gimsieke avatar gimsieke commented on May 29, 2024

I doubt that it will speed things up. One would need to analyze what takes so long. We can do this, but we need your input file. One candidate is MathType formulas. And there is a general overhead for starting the JVM, invoking the processor, compiling the stylesheets, and applying all conversion steps to even a small input file. This overhead may be in the order of 20 seconds, depending on your computer’s performance. If you invoked it with d2t.bat, debugging seems to be switched on unconditionally. It will store some (many) files in test.debug then. The non-Windows script, d2t, has a switch to enable debugging which is disabled by default there. You can edit d2t.bat and change debug=yes to debug=no. But as I said, I doubt that it will have a significant effect unless your storage is very slow.

from docx2tex.

benzxiaojunjun avatar benzxiaojunjun commented on May 29, 2024

https://user-images.githubusercontent.com/72971361/121481608-e1141d00-c9fe-11eb-9b2d-12dd758c3cb6.mp4
Here is my input file:
test.docx
From the recording screen, we can see that I use dat and set DEBUG=no, but still have the debug folder output. Moreover, debug folder and csv file consume a lot of time. Can we add parameters to control whether to output unnecessary files such as csv and xml? Because I think most people only need TeX file, which is just my personal opinion.

from docx2tex.

gimsieke avatar gimsieke commented on May 29, 2024

Thanks for the screencast, which gave me an impression of the speed. I wouldn’t consider this slow. As I said, that’s the overhead to expect. Omitting files for output won’t help. I will check, but I also think that even if the debug dir is created, it will contain only very few files about the progress of the conversion.

from docx2tex.

gimsieke avatar gimsieke commented on May 29, 2024

I invoked it myself and can confirm that test.debug only contains a subdir 'status' with 12 small text files in it. Producing these and the other files such as test.csv, test.d2t.log, and test.xml consumes virtually no time. The overhead is as it is, there is nothing we can do. You will see if you convert larger file that the time needed will increase far less than proportional to the page count.

from docx2tex.

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.