I'm thinking of adding some sort of auto-save feature for drafts to Gosora, however I don't want to send the entire document every-time the user changes something minor as that would waste a lot of bandwidth, so I'm thinking of just sending a little delta of what changed.
What sort of algorithm would usually be good for something like that? Something simple yet effective would be nice, it doesn't need to be perfect, just enough so that people don't cry from the bandwidth bills lol
Maybe, sending changed lines and corresponding line numbers? Possibly with a timestamp? And then, the back-end can go over and deltas and resemble it into a post. There might be a synchronisation concern though, hm. Tricky. I'll have to ponder on it, but if there are any ideas.
What sort of algorithm would usually be good for something like that? Something simple yet effective would be nice, it doesn't need to be perfect, just enough so that people don't cry from the bandwidth bills lol
Maybe, sending changed lines and corresponding line numbers? Possibly with a timestamp? And then, the back-end can go over and deltas and resemble it into a post. There might be a synchronisation concern though, hm. Tricky. I'll have to ponder on it, but if there are any ideas.







