[Bug 194635] Speed optimisation for framebuffer console driver on Raspberry Pi

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 15 07:47:38 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194635

--- Comment #7 from Stefan Berndt <stefan.berndt at imoriath.com> ---
I think it is not related to alignment. Arm code can not be aligned wrong, this
cpu cannot do unaligned work. 

Its more simple, done in my first post:
- one 32bit access is faster than two 16bit or four 8bit access
- using pre-calculated color values, not need to shrink 32bit colors to 24 or
16bit on every draw of a pixel
- moving calculations of not changing values out of a loop
- sorting loops in optimal order

The last thing i have made in this assembler file is to remove every kind of
loops, not load the font image but use special code for every character.
Instead of my fist post this one should not be used in official kernel. The
resulting code is more than 100 times larger! And you cannot change the font
anymore. Its just for fun, education and impression.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list