Page 1 of 1
Slow adding new items into table cells
Posted: Thu Sep 08, 2005 9:22 am
by Milan Kormout
version 1.9.8
Adding new items to the cell of a table is much more slower than adding to classic RVData... Slow adding comes with bigger ammount of items in the cell... Anyone have the same problem? Thanks...
Posted: Thu Sep 08, 2005 8:39 pm
by Sergey Tkachenko
Do you mean inserting?
After insertion, it's necessary to reformat the changed part of document. It may be the whole table, in case of insertion inside cell.
What are you trying to implement? May be there are more efficient ways to do it.
Posted: Fri Sep 09, 2005 8:41 am
by tmMK
Thanks for the reply...
we have downloaded the html importer from your site... now we are trying to implement CSS styles support into it... everythink works fine but... when loading html with the table where is one cell and all the content is in this cell, loading is much more slower... we tried to track it and we think that the point is in the place of adding new items into TRVTableCellData... we are using method AddNLWTag and when we have tried to load the same content to the simple RVData (it wasn't in the table) - it was much more faster...
all i said is noticeable with the content with size over 1MB...
Posted: Fri Sep 09, 2005 10:03 am
by Sergey Tkachenko
Hmm, AddNLWTag (and other Add*** methods) must work in cells with exactly the same speed, because they are defined in the base class of RVData (ancestor for both the main document and the cell). The problem is in some other place.
Posted: Fri Sep 09, 2005 12:37 pm
by tmMK
Sorrrrrrrrrry, i did some measurements and it's our mistake... time for adding new item into the cell after adding 100000 items still takes time below 1ms!