-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a bigger size for uint16? #5400
Comments
You are apparently storing the same table in each element of the vector, otherwise the result would would likely be 1.2GB Tables are stored independently, have a vtable offset (32-bit), and when you create a vector of them, you create offsets to them (32-bit). So your entire file is offsets to the same table. If you change |
Hi @aardappel thanks for the quick answer, I'm using the |
No, it shouldn't optimize those away automatically. |
This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days. |
Hello, I'm using the latest compiler with C#
To illustrate the issue I made this simple schema:
`
namespace World;
table WorldTile {
spriteIndex:uint16;
}
root_type WorldTile;
`
I save this data in a vector, there are 100000000 (100^4) items in it
So I would assume the file would be around 200mb, as 100000000 * 2 to mb is 200
but I get 400mb
Note that I get the same result if I change the data type to uint32
The text was updated successfully, but these errors were encountered: