Gerhard Froehlich wrote:
> 
> >-----Original Message-----
> >From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, January 17, 2002 6:28 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: Improved the feeled performance!
> >
> >
> >Enke Michael wrote:
> >>
> >> Hi people,
> >> as we have a default Buffer of 8192 byte in the AbstractTextSerializer
> >> sometimes it takes very long until any result is visible in the browser.
> >
> >Uh, yeah, didn't know we had such a big buffer....hmmmm...
> >
> >> Therefore I introduced an "OutputFlusher" which flushes the BufferedOutputStream
> >> per default every 500 ms. Now the pageheader is shown immediately, independent of
> >> how long it takes to fill 8192 byte.
> >> I hope this helps.
> >> I prepared AbstractTextSerializer to get the time in milliseconds
> >> from cocoon.xconf, the name is "flush-time", default is 500, values below 100 are 
>set to 100,
> >> value of 0 means no flushing.
> >> But I have no idea how to setup, what to put in cocoon.xconf.
> >> Do I have to put AbstractTextSerializer into cocoon.roles???
> >>
> >> Attached the diff and a new class for cocoon/serialization
> >
> >Thanks for the patch, but now I wonder: should we make this a more
> >general component?
> >
> >I mean, sort of a 'heartbeat' thread in background does all sort of
> >time-dependent things (cleaning up the cache, flush buffers, and so on)
> >
> >What do you people think?
> 
> How about using the StoreJanitor Thread? You can configure the interval in
> cocoon.xconf file. So we don't have to add a new Thread.

I was proposing exactly this: unifying all 'clock-depending' events into
a single 'hardbeat' thread where components can register to have their
own 'interrupt' executed.

It's for sure more elegant than what we have today.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<[EMAIL PROTECTED]>                             Friedrich Nietzsche
--------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to