power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TOutputCache hinders progressive rendering #389

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Current implementation of TOuputCache hinders progressive rendering, because it 
captures and buffers the output of the controls encapsulated inside it on its 
own. This means that emission of output generated inside the TOutputCache 
control will be delayed until after rendering all the subcontrols has been 
finished, and will be push in one huge block to the client - therefore 
defeating the purpose of progressive rendering.

Following patch works around the problem by introducing a special 
TTextWriter-descendant, which can write to multiple writers parallel and uses 
this feature to both buffer & send the generated content asap to the standard 
output at the same time.

Original issue reported on code.google.com by google...@pcforum.hu on 12 Feb 2012 at 11:17

Attachments:

GoogleCodeExporter commented 8 years ago
Small correction to the original patch. The latter referenced the wrong 
textwriter class (the one from my experimental codebase) and also didn't work 
correctly under certain circumstances (depending on how the original textwriter 
flushed the output).

Original comment by google...@pcforum.hu on 13 Feb 2012 at 12:00

Attachments:

GoogleCodeExporter commented 8 years ago
patch applied in r3111

Original comment by ctrlal...@gmail.com on 14 Feb 2012 at 7:58