Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Most efficient way to build a big variable length string?
#4
Thanks for the suggestions!


I like the idea of an array of shorter strings; much easier and quicker to work with.
But in the end I'd still need to put them all together in one big string which is very slow with over 10mln pieces

I did experiment with the _MEM(sql$) but the PUT #1, , LEFT$(sql, mpos) still makes a copy in memory.

I didn't think of  MID$(sql$, mpos) = MID$(sql$, mpos+1)
Very nice! It saves at least copying half the string!

Converting/merging/processing big files/databases is a bit of my thing with qb64pe. I've already created lots of very fast functions to handle big data.
So if there are no better options for above challenges, I can live with that but sometimes it's a small things that makes a big difference  Smile

Thanks again for thinking with me
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply


Messages In This Thread
RE: Most efficient way to build a big variable length string? - by mdijkens - 11 hours ago



Users browsing this thread: 9 Guest(s)