One is string based, the other is array based.
I would have stuck with the first options but I made it so chunks can have more chunk division (when there is a large amount of objects in it and other reasons) and those chunk divisions can have divisions so it gets really Indexy
Just wondering which one is better performance wise for large amounts of chunks.
One doesn’t have to constantly convert to string back to number then to string again.
One doesn’t have to use a large amount of tables and indexing.
AFAIK numbers are lighter than strings plus you would be suffering the effects of type coercion when you need to construct the key to index the table with. Luau is really good with tables and has a lot of optimisations for accessing them. I don’t have enough knowledge to compare the memory consumption however, which may be a point you’re considering for optimisation.
Luau has a native Vector3 type. Numbers are still lighter than constructing Vector3s whenever you need to index your dimensional array but they also happen to look nicer from a readability standpoint. To be fair, you might want to fiddle around with collectgarbage("count") to compare the memory usage, but as far as indexing goes table hashes are very fast and I would opt for numbers. Luau has great handling for large tables.