[dev] Scry last poll block optimisation
Duck
duck at obala.net
Mon Oct 4 13:23:22 PDT 2004
On Monday 04 of October 2004 14:28, Jan Schneider wrote:
> > Then as we select the poll in the title of the block. We can "cache" the
> > poll data in "this->_poll" so we can reuse id later in the _content block
> > call.
>
> You should put the poll fetching code into a separate method that uses a
> static variable instead of a class member to cache the poll, because you
> can't be sure that _title() gets always called before _content().
>
> Jan.
So something like this, I guess.
Duck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poll.patch
Type: text/x-diff
Size: 2802 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20041004/c7e31dda/poll.bin
More information about the dev
mailing list