PDA

View Full Version : Lazy replication interferes with simple layout


tspratt
01-09-2004, 01:49 PM
I moved my datapath into its own tag and specified
replication="lazy"
pooling="true"
and my response is MUCH faster.

I was using a simplelayout with spacing="1" to show horizontal lines between my replicated views, and changing the replication to lazy seems to break that layout, because my lines are gone.

I vaguely recall hearing something about this but can't remember the fix. (maybe don't use simple layout?)

When is lazy replication a bad idea?

Any help will be appreciated!

Tracy

P.S I also get a message in the debugger (once): "Invalid pooling argument specified with lazy replication in Lazy clone manager in ..." I do not know what this means or why I get it.

antun
01-09-2004, 02:05 PM
Pooling means the replicated views will get re-used when data changes, so that the processor doesn't have to do the work of re-creating them.

Lazy replication will make views of regular height that are within a clipping region of a view (i.e. clip="true") get recycled.

Did you specify a height on the replicated view? Also, did you specify a width on the horizontally-replicated views?

-Antun

tspratt
01-09-2004, 02:49 PM
The child "cell" views were set at height="18". Setting the "row" view height="19" gives me my horizontal lines back. Thank you for the help!

Is that debug message of any significance?

Tracy

antun
01-12-2004, 10:28 AM
Is that debug message of any significance?

Lazy replication forces pooling to be true, so you don't need to set pooling explicitly.

-Antun