[PATCH] performance improvement of _build_row_bitmaps()