Menu

getTile returning RawTile by value

sp2907
2017-01-30
2017-01-30
  • sp2907

    sp2907 - 2017-01-30

    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.

     
  • Ruven

    Ruven - 2017-02-01

    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.

     

Anonymous
Anonymous

Add attachments
Cancel