Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Splitting REALLY *REALLY* long lines into single character + CR + LF
#3
I wouldn't bother trying to put this into a `STRING`, QB64 simply does not handle `STRING`s of that size very well (or at all, in some cases). There are ways you can make it happen but you won't be able to do anything non-trivial with it as most `STRING` operations result in the `STRING` getting copied, which is a big problem if it's a 1GB string.

A better idea is to create a 1GB `_MEM` and handle the data that way. Doing anything with the `_MEM` after you read the data is of course trickier than using a `STRING`, but ultimately you were never going to be able to use the regular `STRING` functions anyway.

Alternatively you could consider whether you actually need the whole thing in memory at one time. If you can adapt what you're doing to act on chunks of Pi at a time then you can process it without ever needing a 1GB `STRING`.
Reply


Messages In This Thread
RE: Splitting REALLY *REALLY* long lines into single character + CR + LF - by DSMan195276 - 04-22-2025, 04:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Lines of Code bplus 20 3,024 01-25-2025, 05:11 PM
Last Post: Pete
  very long pathnames and _DirExists (prob ?) doppler 2 812 12-31-2023, 05:04 PM
Last Post: doppler
  Integer (math) Single = Single SMcNeill 0 543 10-20-2023, 12:16 AM
Last Post: SMcNeill
  tweak Str$ for single and double Jack 9 1,750 12-01-2022, 03:51 PM
Last Post: Pete
  Reading a single value from Registry (Win) euklides 1 677 06-06-2022, 02:41 PM
Last Post: euklides

Forum Jump:


Users browsing this thread: 1 Guest(s)