Skip to content
Snippets Groups Projects
  1. Nov 01, 2017
    • Laurențiu Nicola's avatar
      ENH: Add otbStopwatch replacing itk::TimeProbe · 7afea3ff
      Laurențiu Nicola authored
      The itk::TimeProbe constructor ends up calling
      itkResourceProbe::GetSystemInformation, which reads things like the
      hostname, the number of CPUs and so on. On Linux it parses /proc/cpuinfo
      for that information.
      
      OTB doesn't really need all those fields for a simple timer that's only
      used in a couple of places. This commit adds a replacement for that.
      
      As for the benchmarks, 100 000 instantiations of itk::TimeProbe take
      about 9.5 s on my computer. I suspect it's somewhat slower on a server
      with more CPUs. So this doesn't bring a huge performance improvement,
      but it might help in cases where a large number of high-resolution
      images are being read. The time for the same number of otb::Stopwatch
      instantiations is 4 ms.
      
      The context for this change is a project where we process time series of
      medium to high resolution images over large areas. The TimeProbe in
      otbGDALImageIO was sometimes showing in the profiles.
      
      A relevant discussion can be found at
      https://groups.google.com/d/msg/otb-developers/IvsFzSgRojo/0sMeEIZgCQAJ .
      7afea3ff
  2. Oct 30, 2017
  3. Oct 27, 2017
  4. Oct 26, 2017
  5. Oct 25, 2017
  6. Oct 24, 2017
  7. Oct 19, 2017
  8. Oct 18, 2017
  9. Oct 17, 2017
  10. Oct 16, 2017
  11. Oct 13, 2017
  12. Oct 11, 2017
  13. Oct 10, 2017
Loading