![]() | |||||||||||||
Messages in this thread |
Jesper Juhl <jesper.juhl@gmail.com> wrote: > Benefits of the patch: > - Fewer pointer dereferences should make the code slightly faster. > - Size of generated code is smaller > - improved readability I'm a little surprised that it makes it faster or smaller: I'd've thought that the gcc optimiser would be up to caching the pointer; in fact, if it made any difference, I'd've thought it'd make it larger, slower and consume more stack space as the compiler would then have to carry the extra variable around. OTOH, compiler's are black magic, possibly even blacker than kernels, so who knows... David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-12-09 11:23 [W:2.560 / U:0.490 seconds] ©2003-2008 Jasper Spaans | |||||||||||||