[DiscordArchive] it's some aio thing?
[DiscordArchive] it's some aio thing?
Archived author: robinsch • Posted: 2022-09-06T18:06:45.435000+00:00
Original source
There is lua_xmove but that requires some kind of global state
Archived author: <o> • Posted: 2022-09-06T18:08:05.649000+00:00
Original source
pretty sure that's just for coroutines
Archived author: <o> • Posted: 2022-09-06T18:09:37.224000+00:00
Original source
maybe parse as json in your million thread states then push it as some faster serialized format
Archived author: <o> • Posted: 2022-09-06T18:10:09.361000+00:00
Original source
prolly doesn't matter but might be less state digging
Archived author: robinsch • Posted: 2022-09-06T18:10:41.975000+00:00
Original source
Right now it just comes down to either parsing the json async and then creating the table on request, or doing both and then copying it (slower?)
Archived author: robinsch • Posted: 2022-09-06T18:11:28.179000+00:00
Original source
I guess I'll try to benchmark parsing it on request but using a parser callback to build the table while parsing the json .. but I don't think it will be faster
Archived author: <o> • Posted: 2022-09-06T18:14:37.403000+00:00
Original source
if it's read-only i'd definitely still give userdata a look, there's only so much that needs wrapping to get that working as expected
Archived author: <o> • Posted: 2022-09-06T18:15:01.311000+00:00
Original source
and sparse reads, of course
Archived author: robinsch • Posted: 2022-09-06T18:15:22.601000+00:00
Original source
It also allows writes for hotpatching
Archived author: robinsch • Posted: 2022-09-06T18:15:25.370000+00:00
Original source