BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
113 stars 40 forks source link

Preprocessing on UNC paths very slow #338

Closed jonpas closed 1 year ago

jonpas commented 4 years ago

HEMTT Version: 0.7.6 (stable Project: Any

Description:

Building mods on UNC drives is considerably slower, simple observation shows Preprocess steps is the culprit, everything else is about the same.

Steps to reproduce:

Additional information:

I will try to do some profiling.

HEMTT Output:

/

BrettMayson commented 1 year ago

Can this be closed? Likely not much of anything HEMTT could do anyway, maybe buffered vs unbuffered writes somewhere but I think this is pretty niche.

jonpas commented 1 year ago

Am yet to test this on HEMTT v1.

jonpas commented 1 year ago

Can't actually test this because it's failing to make links between temporary directory and my UNC path (network drive).

TRACE link "C:\Users\Jonpas\AppData\Local\Temp\hemtt\Arma 3_Mods_TAC_Mods\source\x\tac\addons\apollo" => "E:\Arma 3\Mods\TAC_Mods\addons\apollo"
error: Unable to create link: Local volumes are required to complete the operation.

This happens because mklink /J (Junction) is used. mklink /D (Directory symbolic link) would work correctly, maybe fall-back to that could be added?

jonpas commented 1 year ago

With #491 I could test this and I don't see any slow-down like I did with the old HEMTT.

1min 31s for full ACE3 build with binarization on 8c/16t inside a Windows VM with mod files on a network drive. :+1: