• Romain Vimont's avatar
    Store restoration units contiguously · 8503cea4
    Romain Vimont authored
    The "matrix" of restoration units was stored in a vector of vectors.
    
    To avoids an additional indirection for each row, store them in a
    contiguous array instead. Besides the (theoretical) performance benerit
    for every access, this will simplify the implementation of tiled-views
    which have to expose non-overlapping parts of the "matrix" via unsafe
    code.
    
    Also, since its size is constant (although not known at compile-time),
    replace the vector by a boxed slice.
    8503cea4
lrf.rs 18.8 KB