Add more comments to MementoPatternExamples

This commit is contained in:
Petrutiu Mihai
2016-07-18 17:42:18 +03:00
parent 7f6b83edab
commit 2e89181e62

View File

@@ -40,6 +40,11 @@ namespace MememntoPattern
//Basic memento with compression
EmployeeCompressedExample empComp = new EmployeeCompressedExample();
empComp.Run();
//We used gzip encoding in here, but usually, one would use:
//https://en.wikipedia.org/wiki/Delta_encoding
//Git goes the middle way, it first stores the objects as they are.
//and from time to time, it compresses them, by creating pack files
//http://alblue.bandlem.com/2011/09/git-tip-of-week-objects-and-packfiles.html
Console.WriteLine(GetPitfalls());
}