You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use a std::vector<float> for Frame::_image_cache. However, the ability to resize the image cache is not of any use, because a new cache is made for each separate image, and all image channels have the same 2D slice size. The main problem with using a std::vector is that we end up allocating memory and initialising to zero before we fill it with values from disk. This means it will always be slower than something like a simple c-style array.
This is not a problem for small images, but for large images it can become a substantial portion of the initial image load time.
The text was updated successfully, but these errors were encountered:
We currently use a
std::vector<float>
forFrame::_image_cache
. However, the ability to resize the image cache is not of any use, because a new cache is made for each separate image, and all image channels have the same 2D slice size. The main problem with using astd::vector
is that we end up allocating memory and initialising to zero before we fill it with values from disk. This means it will always be slower than something like a simple c-style array.This is not a problem for small images, but for large images it can become a substantial portion of the initial image load time.
The text was updated successfully, but these errors were encountered: