Hi Ruven,
Observed that IIPImage::getTile() returns RawTile object by value. The RawTile copy constructor seem to do a deep copy. (into class member 'data'). Would it make sense to return it by reference or as a pointer to RawTile to avoid extra copying. If yes, is that a big impact due to API change?
Thanks,
Suhas.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It uses a deep copy in order for it be usable in the internal cache and a couple of other reasons. Perhaps this can be improved, so if you think this can be optimized, please have a try and let me know if it works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Ruven,
Observed that IIPImage::getTile() returns RawTile object by value. The RawTile copy constructor seem to do a deep copy. (into class member 'data'). Would it make sense to return it by reference or as a pointer to RawTile to avoid extra copying. If yes, is that a big impact due to API change?
Thanks,
Suhas.
It uses a deep copy in order for it be usable in the internal cache and a couple of other reasons. Perhaps this can be improved, so if you think this can be optimized, please have a try and let me know if it works.