You have no answer in almost half an hour. I am posting something that makes sense to me, not necessarily the right answer. I believe that in half an hour it is better than nothing:
The first algorithm uses a generator. The generator loads the first page of results from the list (into memory) and constantly loads sequential pages (into memory) until there is nothing left of the input.
The second algorithm uses two generators, each of which has an if for only two comparisons for each cycle, unlike the first algorithm.
Also, the second algorithm calls the sum function at the end, rather than the first algorithm, which simply continues to add the corresponding integers as it continues to run into them.
Thus, for sufficiently large inputs, the second algorithm has more comparisons and an additional function call than the first. This might explain why it takes more time to complete than the first algorithm.
Hope this helps
inspectorG4dget
source share