Actually, each time I add a cell to a row an event is fired
(OnRowChanged)
that is used to check/rezize all rows already added to the
table.
The resize is correct but the moment is wrong (it should be
done ONE TIME
ONLY when I add the row to the table.rowcollection)
This could make sense if the row is already added to a table
but is a
non-sense if my row is still "detached".
If my table has 100 columns and 10000 rows this way of work
is good for the
first 1000 rows, after the operation becomes very slow..
Each cell added to the row makes the validation of the whole
table!!!!
Moreover this is actually done using slow methods:
Row.GetRowIndex loops on RowCollection
With the patch attached it is a bit faster (using IndexOf)
(even if I didn't changed the way/moment the whole table is
resized)
If someone approves the change (when to do the check) I can
modify the
sources as well.
Let me know.
Bye,
Lino
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|