[iter] user-tip for better perf (#8712)

This commit is contained in:
Alex Wu 2020-06-02 14:23:50 -07:00 committed by GitHub
parent c5544eb070
commit e9ce47bb6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,6 +198,11 @@ distributed training:
work = [train.remote(shard) for shard in it.shards()]
ray.get(work)
.. tip:: Using ParallelIterator built-in functions is typically most efficient.
For example, if you find yourself using list comprehensions like
``[foo(x) for x in iter.gather_async()]``, consider using
``iter.for_each(foo)`` instead!
API Reference
-------------