Part of bzrlib.groupcompress View In Hierarchy
Produce a serialised group of compressed texts.
It contains code very similar to SequenceMatcher because of having a similar task. However some key differences apply:
Method | __init__ | Create a GroupCompressor. |
Method | _compress | see _CommonGroupCompressor._compress |
Method | _output_chunks | Output some chunks. |
Inherited from _CommonGroupCompressor:
Method | compress | Compress lines with label key. |
Method | extract | Extract a key previously added to the compressor. |
Method | flush | Finish this group, creating a formatted stream. |
Method | pop_last | Call this if you want to 'revoke' the last compression. |
Method | ratio | Return the overall compression ratio. |