diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-04-13 12:09:07 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-04-13 12:09:07 +0100 |
commit | e2f34232a2e9a652e04f0b4e721a61dfde92422a (patch) | |
tree | 5cd3a38205027ffc1e8a4c10d1ca7bf86c272f8a /frontends | |
parent | c4a18c2fddb2b640ae0d554c5444e9bffa3d256f (diff) | |
download | netsurf-e2f34232a2e9a652e04f0b4e721a61dfde92422a.tar.gz netsurf-e2f34232a2e9a652e04f0b4e721a61dfde92422a.tar.bz2 |
refactor html mouse action
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.
Diffstat (limited to 'frontends')
0 files changed, 0 insertions, 0 deletions