Skip to content

PERF: Improve startup time by ~25% delaying import of SimpleITK

Sam Horvath requested to merge github/fork/jcfr/speedup-startup-times into master

Created by: jcfr

Startup time reduced from 5.1s to 3.8s (cold cache)

Stats obtained after averaging values obtained after 5 runs clearing the file cache between runs. The following command was used:

~/Projects/Slicer/Applications/SlicerApp/Testing/Python/MeasureStartupTimes.py --drop-cache -n5 --normal ./Slicer

With a warm cache, it improve the startup time by ~32% (4s -> 2.7s)

Results have been gathered on Ubuntu 15.10 on a workstation with the following specs: 64GB / M.2 PCIe NVMe SSD / Quad Core 3.80GHz

Merge request reports