PERF: follow OTB guidlines + optimize a loop

23 jobs for !709 with fix_1889 in 77 minutes and 35 seconds (queued for 1 second)
detached
Status Job ID Name Coverage
  Precheck
passed #23626
fast-build

00:16:42

passed #23627
legal-check

00:03:39

 
  Prepare
passed #23629
centos-xdk-prepare

00:03:58

passed #23630
macos
macos-xdk-prepare

00:00:43

passed #23628
ubuntu-xdk-prepare

00:00:40

passed #23631
windows10
windows-10-prepare

00:01:55

passed #23632
windows8
windows-8-prepare

00:01:57

 
  Build
passed #23635
centos-xdk-build

00:30:19

passed #23633
debian-build

00:24:41

passed #23636
macos
macos-xdk-build

00:12:07

passed #23634
ubuntu-xdk-build-doc

00:38:37

passed #23639
ubuntu-xdk-qa-code-coverage

00:54:09

passed #23640
ubuntu-xdk-qa-static-analysis

00:38:16

passed #23637
windows10
windows-10-build

00:34:08

passed #23638
windows8
windows-8-build

00:38:50

 
  Report
passed #23641
ubuntu-xdk-report

00:05:59

 
  External
passed cdash:centos-6.6-gcc

passed cdash:debian-testing-gcc

passed cdash:macos-10.11.6-clang

passed cdash:ubuntu-18.04-fast

passed cdash:ubuntu-18.04-llvm-qa

passed cdash:windows-10-x64-vc14.0

passed cdash:windows-8.1-x86-vc14.0