-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vsxmake project generator, very slow #5573
Comments
you can set |
Tried it, canceled the job after 30 minutes, it didn't help. |
please provide verbose logs |
There are no logs, it just hangs for hours after the initial checks:
|
you can try this way to get backtrace. #2033 |
Did a few runs and here are the traces
|
Maybe we should optimize here, big projects can cause it to be very slow. I know this place can continue to be optimized, but at the moment I can't optimize it very well. This patch (#5588) I made some attempts to optimize, you can try it as well and see if it improves. You can also try to debug it or help optimize it. xmake/xmake/plugins/project/vsxmake/render.lua Lines 62 to 96 in 7ae40eb
@OpportunityLiu @SirLynix Any idea? |
I think we should remake the vsxmake generator by forking vs generator and putting idea I had in another issue (use nmake settings to trigger xmake, like Unreal Engine does) |
You can try it, but for now I can only try to optimize it first. @maximegmd Will the new patch be faster? |
@waruqi I am unable to run as I am hitting this xmake-io/xmake-repo#5180 after a clean install |
try it again. |
This helps a lot; it now takes 10 minutes vs a few hours before. That being said, I think we should keep this issue open to track vsxmake improvements, even 10 minutes is quite slow. |
how long does vs generator take? |
Less than a minute |
Can you provide a new stuck backtrace? |
Xmake Version
2.9.4
Operating System Version and Architecture
Windows 11
Describe Bug
When running
xmake project -k vsxmake
on a project with 50 000 source file, it runs for hours.This does not happen with the old vs generator. Running xmake directly to build is also not affected.
Expected Behavior
It doesn't take hours.
Project Configuration
n/a
Additional Information and Error Logs
n/a
The text was updated successfully, but these errors were encountered: