• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

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