Skip to content
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

add_deps有性能问题 #5059

Closed
wagcheg opened this issue May 5, 2024 · 2 comments
Closed

add_deps有性能问题 #5059

wagcheg opened this issue May 5, 2024 · 2 comments
Labels
Milestone

Comments

@wagcheg
Copy link

wagcheg commented May 5, 2024

Xmake 版本

2.9.1

操作系统版本和架构

ArchLinux 6.7.9-lqx1-1-lqx x86_64 GNU/Linux

描述问题

config有依赖的项目花费的时间随着项目数量增加快速增长

期待的结果

config时间降低

工程配置

set_kind("phony")
local num = 100
for i=1,num do
target("t" .. i)
for j=i+1,num do
add_deps("t" .. j)
end
target_end()
end
i=num + 1
target("t" .. i)
target_end()

附加信息和错误日志

[many_targets]$ xmake f -vD
checking for gcc ... /usr/bin/gcc
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim --version), No such file or directory
checking for nim ... no

后面就卡住了 一个cpu核被占满

@wagcheg wagcheg added the bug label May 5, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: add_deps has performance issues

@waruqi waruqi added this to the v2.9.2 milestone May 5, 2024
@waruqi
Copy link
Member

waruqi commented May 5, 2024

再试试,应该可以了,#5061

xmake update -s dev

@waruqi waruqi closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants