I use https://www.writelatex.com/ where I have a 17 pages (pdf) of math exercices, and I don't know how they deal with it, but apparently they manage to make incremental "recompilation process", because when I make an online modification on the Latex code, the modification appears almost anstantaneously on the preview pdf aside the code !