Python 2.7.11
Filename: test_memory_nomemoization.py

Line #    Mem usage    Increment   Line Contents
================================================
    16     21.8 MiB      0.0 MiB   @profile
    17                             def no_memoization():
    18                             
    19     22.1 MiB      0.2 MiB       parser = ParserPython(rhapsody, memoization=False)
    20                             
    21                                 # Smaller file
    22     22.1 MiB      0.0 MiB       file_name = join(dirname(__file__), 'test_inputs', 'LightSwitch.rpy')
    23     22.1 MiB      0.0 MiB       with codecs.open(file_name, "r", encoding="utf-8") as f:
    24     24.7 MiB      2.6 MiB           content = f.read()
    25                             
    26     59.7 MiB     35.0 MiB       small = parser.parse(content)
    27                             
    28                                 # File that is double in size
    29     59.7 MiB      0.0 MiB       file_name = join(dirname(__file__), 'test_inputs', 'LightSwitchDouble.rpy')
    30     59.7 MiB      0.0 MiB       with codecs.open(file_name, "r", encoding="utf-8") as f:
    31     66.0 MiB      6.3 MiB           content = f.read()
    32                             
    33    129.9 MiB     63.9 MiB       large = parser.parse(content)


