ELI5: Explain Like I'm 5

Delta encoding

Hi there! Today we are going to talk about something called "delta encoding".

Imagine you have a big book with many pages. Each page has some words on it. Now, let's say you have to make a copy of this book, but there's a problem: you don't have the time, the money or the space to copy every single page of the book.

What would you do? You would find an easier way to copy the book, right? That's where "delta encoding" comes in.

Delta encoding is like copying only the changes made to a book. For example, let's say you have a book with four pages:

1. On the first page, you have the word "tree".
2. On the second page, you have the words "tree" and "sun".
3. On the third page, you have the words "tree", "sun" and "cloud".
4. On the fourth page, you have the words "tree", "cloud", "sky" and "sun".

Now let's say you are asked to copy this book, but you can only copy the changes made to it. With delta encoding, you could do this:

1. The first page of the copy would be the same as the original book's first page: it would have the word "tree".
2. The second page of the copy would only have the word "sun" added to it, because that's the only change made to the original book's second page.
3. The third page of the copy would have the word "cloud" added to it, because that's the only change made to the original book's third page.
4. The fourth page of the copy would have two changes: "sky" and "sun".

So, instead of copying every single page of the book, you only copied the changes made to it. This way you saved time, money, and space.

This technique is used not only for copying books, but also for saving files in computers. When we make changes to a file, instead of saving the whole file again, we can save only the changes made to it using delta encoding.

I hope you understood what delta encoding means. If you have any more questions, feel free to ask!