ajaxorg/cloud9 — pull request #1619 by sergi (2012-05-30 00:01:23+00:00)
Title: Changed the format of stored revisions for efficiency

Changed the format of stored revisions from a big JSON object to a series of little JSON objects for each revision in each line, in order to be able to manipulate and save more efficiently without blocking.

When saving now the server appends a line to the revisions file that contains the stringified object for the revision, instead of stringifying the whole revisions object, which can be very expensive. When reading revisions we do it in an asynchronous ordered loop in order to not block the server while doing it.

@javruben @zefhemel