Alxandr
Alxandr
Aug 23, 2017 · 1 min read

> Unfortunately, generators and iterators are synchronous. Unless we’re willing to read our entire file into memory, they can’t help us.

This is just plain false. You’re conflating async with reading parts of a file at a time. If you tried doing this syncronously I’d expect more comparable results to python as it’s what I’m assuming python is doing.

Instead, what you’re doing is likely just comparing apples and oranges.

)

    Alxandr

    Written by

    Alxandr

    The coding-ninja