Zhou Zheng Sheng has posted comments on this change.

Change subject: Adding threads limitation to misc.tmap
......................................................................


Patch Set 8:

I think itmap and tmap are in different Paradigms. With itmap, you can start to 
iterate the returned object immediately regardless the threads finish their 
work, and in iteration you can yield another generator as well. It's like lazy 
evaluation.

With tmap, the function waits all the threads finish the work and returns the 
values in the same order. It may not be very efficient as tmap but it does 
mimics the behaviour of traditional map with a better performance. So if I am 
using these functions, sometimes I would like to use itmap, sometimes tmap.

--
To view, visit http://gerrit.ovirt.org/8858
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I07845bfd78b9215e8994ac2ebe46a7ff78c85625
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Shu Ming <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to