Slow adding new items into table cells

General TRichView support forum. Please post your questions here
Post Reply
Milan Kormout

Slow adding new items into table cells

Post 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...
Sergey Tkachenko
Site Admin
Posts: 17520
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
tmMK
Posts: 18
Joined: Thu Sep 08, 2005 10:27 am
Location: Prague - Czech Republic

Post 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...
Sergey Tkachenko
Site Admin
Posts: 17520
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
tmMK
Posts: 18
Joined: Thu Sep 08, 2005 10:27 am
Location: Prague - Czech Republic

Post 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! :wink:
Post Reply