Speed up Image.getbbox(); fix it for I;16 modes - #9768
Conversation
91b85ba to
223df15
Compare
Image.getbbox()Image.getbbox(); fix it for I;16 modes
17b2185 to
50e27a2
Compare
Merging this PR will improve performance by 69.8%
|
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
@akx I would appreciate it if you didn't rebase after an approval. I no longer find it easy to know what hugovk approved, and what he didn't |
|
@radarhere Sorry, I'll try to keep that in mind! 👍
|
Hoist/restrict and autovectorization optimizations for
getbbox().A review also showed that I;16 modes weren't correctly supported by this function (they were iterating over int8), so that got fixed too. I know it's bad form to mix optimizations and bugfixes into one PR, but the bugfix would have required the
const type* row = ...hoist assignments anyhow.