Replies: 1 comment
|
I think this would be pretty useful, along with an option to create some sort of stream buffer that automatically adjusts its size to contain its elements, similar to making a Luau byte array. It is very difficult to use buffers to efficiently create large data structures of variable size (say a GLB file, BMP image, or networking data). |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a potential use case for buffers where I would be comparing large server state deltas to client predicted deltas for checking if the client needs to rollback and resimulate.
My alternative is using strings or converting the buffers into strings; but I have a feeling this is not as desirable (due to buffer compression and I'm assuming buffer to string is not optimal for these large situations)
I could write a native luau implementation using readf64's and writef64's but I'm pretty sure this is not as good as a C implementation.
Any alternatives?
All reactions