From 2e89181e6221fe0430bccc27256e65fe08f633a7 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Mon, 18 Jul 2016 17:42:18 +0300 Subject: [PATCH] Add more comments to MementoPatternExamples --- src/MememntoPattern/MementoPatternExamples.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MememntoPattern/MementoPatternExamples.cs b/src/MememntoPattern/MementoPatternExamples.cs index da004be..a639591 100644 --- a/src/MememntoPattern/MementoPatternExamples.cs +++ b/src/MememntoPattern/MementoPatternExamples.cs @@ -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()); }