summaryrefslogtreecommitdiff
path: root/sys/lib/python/posixfile.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-10-23 02:08:35 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-10-23 02:08:35 +0200
commit4fdc7dbe9c1c6530cf30e367a3db9c8ce0d14a57 (patch)
tree99c157c464162085dcda6d5ce6ab756fe472b024 /sys/lib/python/posixfile.py
parent22c758478072c9323fce68dd076efdb8213f5c61 (diff)
fmt: improved version using less memory
functional identical, but uses different data structure. instead of reading all words into memory, we read and tokenize on demand keeping a simple linked list of words to conume by further calls of getword(). once the list is empty we read the next line, tokenize it and fill the list up again. so we only need as mutch memory to hold all the words of the longest line.
Diffstat (limited to 'sys/lib/python/posixfile.py')
0 files changed, 0 insertions, 0 deletions