mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-25 07:49:38 +03:00
e2f34232a2
This reduces the source complexity of the html_mouse_action() previously this was a single function of several thousand lines with over 30 local variables allocated on the stack. Variables are now mostly held in a single static structure which drasticaly reduces the size of stack frame required and improves lookup locality. The generated code does cause two additional function calls as the compiler avoids inlining the sub functions. The optimiser seems to produce somewhat better code within the sub functions. In the final analysis there appears to be no significant performance loss or gain with this change, just more readable source. |
||
---|---|---|
.. | ||
fetchers | ||
handlers | ||
backing_store.h | ||
content_debug.h | ||
content_factory.c | ||
content_factory.h | ||
content_protected.h | ||
content.c | ||
content.h | ||
dirlist.c | ||
dirlist.h | ||
fetch.c | ||
fetch.h | ||
fetchers.h | ||
fs_backing_store.c | ||
hlcache.c | ||
hlcache.h | ||
llcache.c | ||
llcache.h | ||
Makefile | ||
mimesniff.c | ||
mimesniff.h | ||
no_backing_store.c | ||
urldb.c | ||
urldb.h |