PDA

View Full Version : large strings issue


bule
10-10-2006, 06:14 AM
Is it just me or are the manipulations of the long strings (~1MB) working very slow (exponentially slow)?
Even big tables with a lot of normal sized strings...

Tek
10-10-2006, 07:05 AM
I think I have the same problem with a program I made that analyzes error logs from one of our products. It reads in the error logs as strings and then parses it. When it starts, its fast, but then gets exponentially slower as you said. I thought about trying to split up the file but I don't know how I can improve it that way.

Lorne
10-10-2006, 10:13 AM
Which actions are you using?

You could try using the built-in Lua string functions to avoid any CString realloc overhead.

bule
10-10-2006, 04:15 PM
Mostly concating and replacing (using .. to concat 10-15 strings in a row) small strings from big tables I get from SQLite queries...