If you know that you stay on a specific format of the above ones you can even opt it further by using memcopy instead of that many shifts and assignements.
further opts would be by not using such commands at all but doing p :+ sizeofColor to go through
=> to get the maximum out of BM use the default commands and their implementation as an idea on how to optimize it seriously for your specific need.
further opts would be by not using such commands at all but doing p :+ sizeofColor to go through
=> to get the maximum out of BM use the default commands and their implementation as an idea on how to optimize it seriously for your specific need.