CobaltFusion / DebugViewPP

DebugView++, collects, views, filters your application logs, and highlights information that is important to you!
Boost Software License 1.0
1k stars 143 forks source link

Store the messages in compressed memory #36

Closed janwilmans closed 10 years ago

janwilmans commented 10 years ago

Less resources would required if we compress messages using for example Google snappy https://code.google.com/p/snappy/

A fast and easy way to handle this is to use a fixed lines-size block buffer. This way compression/decompression is clustered in a way that it is only needed when blocksize is reached to both reads and writes.

pseudo code: create a vector writeBuffer and when writeBuffer.size() == blocksize compress the writeBuffer and store it in vector< buffer* > mBlocks

see https://code.google.com/p/buggazer/source/browse/source/BugGazer/Storage/SnappyBlocks.cs

specifically, the method string GetText(int stringId)

janwilmans commented 10 years ago

implemented.