GML SOLVED - Reading huge string

Discussion in 'Programming' started by MarisFrance, Jul 27, 2018.

  1. MarisFrance

    MarisFrance Member

    Joined:
    Jul 26, 2018
    Posts:
    22
    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?
     
  2. O.Stogden

    O.Stogden Member

    Joined:
    Jul 25, 2018
    Posts:
    201
    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?
     
    MarisFrance likes this.
  3. MarisFrance

    MarisFrance Member

    Joined:
    Jul 26, 2018
    Posts:
    22
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice