July 19, 2022
On 19/07/2022 1:43 AM, Paul Backus wrote:
> You can have a fast path for arrays and fall back to the slower, more generic version for other ranges.
> 
> But yes, the whole point of ranges is to decouple your algorithm from the source of the data it operates on. If you *want* your algorithm to be coupled to a particular source of data, then ranges will only get in your way. (Although it may be worth asking yourself: are you really sure that's what you want?)

AV data gets very large, and has complex processing that can be easily vectorized.

Formats like PNG, support compression via say zlib. So you're going to need to send a block of memory over to it.

Point is, using ranges for this is just shooting yourself in the foot if you want any type of performance that isn't bad.
1 2
Next ›   Last »