Skip to content
Snippets Groups Projects
Commit ba718e67 authored by Alexander Graf's avatar Alexander Graf
Browse files

efi_loader: Optimize GOP switch


We usually try to compile for size, not for speed. Unfortunately with the
more powerful GOP infrastructure to handle all sorts of GOP operations, we
end up slowing down our copying hot path quite a lot.

So this patch moves the 4 possible GOP operation modes into separate
functions which call a common function again. The end result of that is
more optimized code that can properly do constant propagation throughout
its switch() statements and thus removes compares in the hot path.

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 90b658b4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment