Then the underlying file is scanned. The performance of this depends on the number of non contiguous changes made to the document. At load time i.e. with no changes this will be relatively fast since it is a single memory mapped piece/buffer.
Further request are then either served from line 12345 or the start of the file, depending on which is nearer.
Further request are then either served from line 12345 or the start of the file, depending on which is nearer.