• Luc Hermitte's avatar
    PERF: Avoid allocation induced by VLV pixels · fc8d97ce
    Luc Hermitte authored
    The `DifferenceImageFilter` is often used on `VectorImage`s, in particular when
    doing `compare-image`.
    
    Creating new `VariableLengthVector` pixels at each iteration, or casting them
    will automatically end up in construction and destruction of VLV pixels, and
    thus allocation and liberation of heap memory. This is not efficient.
    
    This commit aims at minimizing the number of allocation by factorizing out
    everything that can be (pixel size, typical max value, typical zero value).
    Resetting value is done by assignment, which has the good property of not
    inducing any allocation on VLV variables.
    fc8d97ce
Name
Last commit
Last update
.gitlab Loading commit data...
CI Loading commit data...
CMake Loading commit data...
Copyright Loading commit data...
Documentation Loading commit data...
Examples Loading commit data...
Modules Loading commit data...
Packaging Loading commit data...
SuperBuild Loading commit data...
Utilities Loading commit data...
i18n Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CTestConfig.cmake Loading commit data...
LICENSE Loading commit data...
NOTICE Loading commit data...
PSC.md Loading commit data...
README.md Loading commit data...
RELEASE_NOTES.txt Loading commit data...
VERSION Loading commit data...