On 30/06/15 01:50, [email protected] wrote:
I successfully added UMS to libuv, it works. See commit
https://github.com/codepilot/libuv/commit/facca7bbd9c40e90199470179d993915dd159341
The speed isn't too much slower, see fs_stat.txt
<https://github.com/codepilot/libuv/blob/libuv/ums/test/fs_stat.txt> vs
fs_stat_ums.txt
<https://github.com/codepilot/libuv/blob/libuv/ums/test/fs_stat_ums.txt>
The speed difference is mostly because UMS has some builtin
synchronization, and so does the work queue. These conflict some, but do
not cause errors, just slow downs.
Great work, thanks for sharing!
IMHO, this is not the right way to integrate support for UMS, though
it's a great way to see it working.
I think uv_thread_create should always use native threads. Then Windows
could use a threadpool implementation which uses UMS threads instead of
native threads. Doing this you might be able to simplify synchronization
and thus get some speedups.
Cheers,
--
Saúl Ibarra Corretgé
http://bettercallsaghul.com
--
You received this message because you are subscribed to the Google Groups
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.