My TeXstudio file is huge. When I make changes on one page/segment only (or the like), I'd like to recompile it quickly. How?
Criteria:
I don't want to split the file into multiple files. Moreover, I'd prefer to have the whole file in the pdf. Therefore, "Preview" or \includeonly or the like is not the solution. A fortiori, as Preview seems to produce errors unless you apply it to very small segments.
(However, I present those two solutions as "answers" below and explain there how you could use them, although they don't fulfill these criteria. Based on the comments, memoize or something else might work better. Maybe somebody could work that out to a solution I could accept?)
However, I'd be fine with slight "bugs", such as the changes not affecting the other files even if they should (e.g., a changing theorem number on the one segment need not be updated elsewhere or vice versa). (After all, I can make a full compile when I'm ready with these small, quick edits and compiles.)
Moreover, I'd be fine with me having to add some macros here and there, unless I have to do that every time I compile.
Additional question: is there a decent way TeXstudio could be improved to make this easy (by its developers)?
It seems that very many people have roughly the same problem, so you can present several competing solutions.