将os.runv/os.iorunv改为pipe #5301
ChrisCatCP
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
暂时不考虑,性能反而可能会更慢,而且稳定性,兼容性也不一定能保证。
remote build 里面目前就有一份用了 pipe 的实现,可以看下: 不过只是开了一路,所以没啥问题。 而且,目前 xmake 的调度,要同时调度 pipe, socket 和 process,在 windows 上, pipe/socket 走的 iocp ,process 走的是独立线程。 调度等待机制实现上没法像 epoll 那样完全一个 wait fd list 搞定所有,原本常规状态仅仅只需要等待 process list,非常简单高效,现在还要 pipe 掺和进来去 wait ,两路不同的 wait list 需要走线程同步,多少也会增加延迟。
|
Beta Was this translation helpful? Give feedback.
1 reply
-
我其实有实现 确实发现不是很好用 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
原来的实现是用file来实现的 是否可以考虑改成pipe?
Beta Was this translation helpful? Give feedback.
All reactions