Replies: 1 comment
-
The intention was to add the same support for "multi-user system trees" and "single-user user trees" that is available on Unix. I was unaware of this slowdown. It could be a good idea to detect that the "user" tree is in use and skip the permission-setting on Windows, or make skipping it into a config option. PRs welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Through profiling I found out, that around half the time, luarocks is busy setting file permissions on Windows, when installing Lua only modules. If calls to
icacls
(in src/luarocks/fs/win32/tools.lua:280-295) are disabled, then there is a 2x speedup during installation, which is comparable to the time I've measured on Linux. Is there a reason / need for setting file permissions on Windows?Beta Was this translation helpful? Give feedback.
All reactions