Changes between Initial Version and Version 1 of Ticket #21179, comment 12


Ignore:
Timestamp:
Feb 22, 2014, 1:53:45 PM (11 years ago)
Author:
Rigel Di Scala

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21179, comment 12

    initial v1  
    11You can also test this with an infinite series, such as the classic Fibonacci function, if you replace the range generator with something like:
    22
     3{{{
     4#!python
     5def fib():
     6    a, b = 0, 1
     7    while 1:
     8        yield a
     9        a, b = b, a + b
    310
     11}}}
    412I tested this and the memory use did not increase significantly even after streaming over a gigabyte of data for a single request.
Back to Top