Jump to content

Kind of a weird problem:

 

I'm working on a large LaTeX document using TexMaker and MikTex. When my documents are stored on a local USB HDD, the document takes ~ 1:30 min to compile.

 

When my documents are stored in a network folder it takes ~ 8:00 min to compile. Even though CrystalDiskMark shows much better results for the network folder.

 

Anyone any idea where there could be a problem? Everything else seems much faster over network.

 

Best Regards!

Y_.jpg

F_.jpg

Link to post
Share on other sites

I would imagine the compiler is doing a lot of small reads or seeks inside the source files, instead of buffering the whole file in memory. 

 

But... there's a lot of things in play here ... you have no idea how much caching the usb driver does (reading your latex document and then serving cached bits from ram) and you also don't know if network folder has caching enabled (it may not, in which case it constantly tries to read across network instead of using a local copy, therefore increasing latency when seeking within files)

Network may be faster at whole file transfer compared to usb, but then once the usb is caching files it may be faster to seek within files compared to network where it may have to keep transferring chunks over and over through network and if the connection keeps resetting to send small packets of data, you don't gain that high transfer speed.

 

 

Would be easier to just set up a RAM drive (I personally use ImDisk but there's other free solutions) and copy everything to ram drive then compile from there. 

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×