Skip to content

Instantly share code, notes, and snippets.

@5LICK
Created January 10, 2017 14:23
Show Gist options
  • Save 5LICK/8f85d6b351b6169de8c976b3e587b049 to your computer and use it in GitHub Desktop.
Save 5LICK/8f85d6b351b6169de8c976b3e587b049 to your computer and use it in GitHub Desktop.
/*
[1]
Header size: 60 bytes
Code size: 240 bytes
Data size: 0 bytes
Stack/heap size: 16384 bytes; estimated max. usage=1000004 cells (4000016 bytes)
Total requirements: 16684 bytes
Output amx-file size: 332b
main() {
new arr[1000000];
for(new i = 0; i < 1000000; i++) {
arr[i] = 1;
}
}
*/
/*
[2]
Header size: 60 bytes
Code size: 200 bytes
Data size: 4000000 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4 cells (16 bytes)
Total requirements: 4016644 bytes
Output amx-file size: 1mb
new arr[1000000];
main() {
for(new i = 0; i < 1000000; i++) {
arr[i] = 1;
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment