Which is better to do? enum in memory or a variable every time?
#7

A variable has 32 bits.
PHP код:
new g_Var// 32 bits = 4 bytes 
If 32 bits are 4 bytes, then each byte has 8 bits. Right? Just as simple as 32/4 = 8.

If you declare 256 cells, you have 256 "variables", then: 256 * 4 bytes = 1024 bytes = 1.024 kylobytes = 0.001024 megabytes
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)