Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C/C++ tricks

Name: Anonymous 2016-10-20 4:14

Did you know, that keeping frequently accessed field at the start of a struct/class can greatly boost access time and decrease code size? I got like 1/10 speed up.

Name: Anonymous 2016-10-20 16:37

>>9

void get_foo(void *filename) {
return ((header_t*)get_file_bytes(filename))->foo;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List