L
L
lightseeker2021-07-07 20:34:10
JavaScript
lightseeker, 2021-07-07 20:34:10

How much memory is allocated for primitive types?

The question may seem trivial, but it is really important.
Is the allocated size fixed or does it depend on the data we want to put there?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-07-07
@Aetae

For numbers - obviously fixed, as well as for Boolean.
For strings - fixed up to a certain size, if it doesn't fit - esoteric dances begin. For details in the raw engines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question