joel-wright / sizefs

A mock file system for creating files of a particular size

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculate sizes using accumulator

joel-wright opened this issue · comments

Modify the Xeger generators to return a size with a generation, and use an accumulator to calculate the total size of a generated regex to replace lots of calls to len()

Not really a bug because len() is O(1), but implemented to allow the generated content to remain as a list for as long as possible.