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 - 01-17-2025, 02:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable length type declarations dano 5 691 08-06-2025, 09:53 PM
Last Post: dano
  Determining if variable or static string is passed to a Sub dano 9 1,228 06-20-2025, 06:31 PM
Last Post: CookieOscar
  Big problem for me. MystikShadows 11 1,988 01-16-2025, 05:11 AM
Last Post: JRace
  Huge array of variable length strings mdijkens 9 1,843 10-17-2024, 02:01 PM
Last Post: mdijkens
  REDIM, TYPE, and STRING Woes TerryRitchie 16 3,163 04-13-2023, 05:17 AM
Last Post: DSMan195276

Forum Jump:


Users browsing this thread: 1 Guest(s)