[DiscordArchive] it's some aio thing?
[DiscordArchive] it's some aio thing?
![[Image: unknown.png?ex=690c3902&is=690ae782&hm=f...e806e81a7&]](https://cdn.discordapp.com/attachments/415944535718494208/1016769359710011452/unknown.png?ex=690c3902&is=690ae782&hm=f24dd6ac5630df6831557f0ec27a55707da8b2769b1e207c94266a9e806e81a7&)
Archived author: robinsch • Posted: 2022-09-06T17:58:26.169000+00:00
Original source
![[Image: unknown.png?ex=690c3902&is=690ae782&hm=f...e806e81a7&]](https://cdn.discordapp.com/attachments/415944535718494208/1016769359710011452/unknown.png?ex=690c3902&is=690ae782&hm=f24dd6ac5630df6831557f0ec27a55707da8b2769b1e207c94266a9e806e81a7&)
Archived author: robinsch • Posted: 2022-09-06T17:58:48.693000+00:00
Original source
just parsing the json and turning it into LUA table is faster than copying over
Archived author: <o> • Posted: 2022-09-06T17:59:35.661000+00:00
Original source
hmmm right, you need a full parse in the end. well, it _is_ possible to wrap an entire json struct in lua and just not ever make it a table if you really need to push it, but individual accesses will be slower than table operations
Archived author: robinsch • Posted: 2022-09-06T18:00:45.376000+00:00
Original source
sadly I cannot break existing API
Archived author: robinsch • Posted: 2022-09-06T18:00:49.403000+00:00
Original source
so it needs to be a table
Archived author: <o> • Posted: 2022-09-06T18:01:35.889000+00:00
Original source
pretty sure you can get it to behave just like a table with metatable shit, though otherwise probably out of luck
Archived author: <o> • Posted: 2022-09-06T18:03:37.162000+00:00
Original source
but make sure it's actually the copy taking up that much time
Archived author: robinsch • Posted: 2022-09-06T18:03:45.205000+00:00
Original source
it is
Archived author: robinsch • Posted: 2022-09-06T18:03:51.104000+00:00
Original source
the code is simply stupid
Archived author: <o> • Posted: 2022-09-06T18:05:50.922000+00:00
Original source
might be someone that knows a method in an actual lua forum, it's not really a problem i've had to consider before