Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3877

Copying 15k string takes 9 secs on an M2

$
0
0

I have a TextArea control and I am storing the StyledText.RTFData into an SQLite database.

The RTFData is 15k - loading it from the database into the TextArea is pretty quick - no noticeable lag at all.

But saving the RTFData back to the database is taking 9 secs - an eternity when you are using an app.

I thought that maybe it was the database slowing it down… but if I take the database out of the equation and simply copy RTFData to a new string, it STILL takes 9 secs to make the copy.

Now, if I read the string from the database - into an actual String - and then copy that String, it is instantaneous.

So what is the deal with getting the RTFData ??? why is it taking so long ? Is there any advice on a different approach that might be quicker ?

Thanks for any advice - TJ

14 posts - 9 participants

Read full topic


Viewing all articles
Browse latest Browse all 3877

Trending Articles