2 ms·
It'd be interesting to see this compared to Halide [0], which conveniently already has a resize example [1]. Parallelization and data locality for example can m
by Veratyr 10y ago
It'd be interesting to see this compared to Halide [0], which conveniently already has a resize example [1]. Parallelization and data locality for example can make big differences.
[0]: http://halide-lang.org/ http://halide-lang.org/
[1]: https://github.com/halide/Halide/blob/e9ece5ee8ee9cb62295d5e7e5409e54390bb01b4/apps/resize/resize.cpp https://github.com/halide/Halide/blob/e9ece5ee8ee9cb62295d5e...
- andrewbadams 10y agoI just discovered today that our resize example is actually absurdly slow. Working on a better one. So far it's about 8x faster. The other apps are much better tuned. (I'm one of the main Halide devs)
- Veratyr 10y agoCool! On another note, are you aware of any other places with a lot of Halide code? A repository for common but not-obvious processes like brightness changing, denoising, contrast adjustment and such would be really cool.