Skip to content
Hokusai2.2.2
ivantokar.com

Runtime & performance

  • Hokusai.initialize() starts the native runtime early; otherwise it starts on first use.
  • Hokusai.configure(_:) freezes process-level settings (RuntimeConfiguration: maxConcurrentEvaluations, maxQueuedEvaluations, vipsConcurrency, maxOutputPixels, blockUntrustedOperations) before the first image.
  • Hokusai.capabilities() reports the libvips and Cairo versions and which formats this process can read and write.
  • Hokusai.runtimeStatus reports running and queued evaluations.

Evaluations beyond the limit wait as suspended tasks in FIFO order. Do not shut the runtime down in server code. Input is bounded by InputLimits and, for sequential access, by InputOptions.access.