Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 206
    • Issues 206
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Merge requests
  • !377

Start usage of extern templates

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Guillaume Pasero requested to merge 1649-extern-templates-take3 into develop Feb 07, 2019
  • Overview 7
  • Commits 16
  • Pipelines 2
  • Changes 33

Summary

This is the 3rd attempt to integrate extern templates into OTB.

Rationale

This work is part of the build performance story (#1649)

Implementation Details

This 3rd try is based on branches 1649-extern-templates and 1649-extern-templates-take2. Here is the summary:

  • As in "take2", use a custom GenerateExportHeaderCustom module to generate export headers.
  • Use extern templates with common types for classes :
    • Image
    • VectorImage
    • ImageFileReader
    • ImageFileWriter
  • Clean export macros (remove/replace ITK_EXPORT) in modules ImageBase and ImageIO
  • other minor fixes to reduce the number of symbols compiled

You can use the following command to check the impact:

find . -name "*.o" -exec nm -g --demangle '{}' \; | grep " W otb::" | sort | uniq -c | sort -n

Additional notes

Two classes have not been exported by default (ITK_EXPORT removed) as they are not used outside their module :

  • otb::ExtractROIBase
  • otb::ImageSeriesFileReaderBase

Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1649-extern-templates-take3