So as an example, which of these two tables will take up the least amount of storage in a datastore?
t2 uses 0 to represent false, and 1 to represent true. While t1 just uses the bool value
local t1 = {
["test"] = true
}
local t2 = {
["test"] = 1
}
httpService:JSONEncode(t1)
httpService:JSONEncode(t2)
True and False to a computer is 1 or -1, so they are the same size. That’s why that time test is exactly the same amount of time. Both are 1’s to the computer.
Ah I see, after all it just becomes a string, maybe this was a bit of a stupid question of me haha, it was a bit obvious actually. Thank you for testing it though cheers!
Not really stupid question, if you don’t know this stuff … you don’t know. True and false are actually called tokens. As .lua is an interpreted language. There is a mass token table that coverts your code at run time or when complied. Same thing hold true for other tokens like Red or Green.