• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML SOLVED - Reading huge string

M

MarisFrance

Guest
I'm trying to get array data from packed string ~800 kilobytes.
Tried to use string_ord_at() but it's too slow.
string_byte_at() is a bit faster but slow too.
It takes 5 minutes to read whole string symbol by symbol.
Any ideas?
 

O.Stogden

Member
I have no idea if it would improve things or could work, as I'm not overly familiar with this subject, but would it be possible to use the asynchronous buffer functions to possibly save and load the data?
 
M

MarisFrance

Guest
Solved.
Divided the string into small parts (1 kb each).
For some reason string_ord_at and string_byte_at are very very slow if string is huge.
 
Top