You are absolutely right.
For performance sake, I just reserve 'enough' space for the specific usecase at hand.
If you have a case where the replace could make the resulting string more then 2x the size, you'd have to increase it.
making it dynamic with inline resizing would make it (a lot) slower; In my scenario this is run millions of times so I'd rather reserve multiple GB for _mem just to be sure (memory enough to spare)
$Checking:Off would definitely help also
For performance sake, I just reserve 'enough' space for the specific usecase at hand.
If you have a case where the replace could make the resulting string more then 2x the size, you'd have to increase it.
making it dynamic with inline resizing would make it (a lot) slower; In my scenario this is run millions of times so I'd rather reserve multiple GB for _mem just to be sure (memory enough to spare)
$Checking:Off would definitely help also
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience