canonical / craft-providers

Python interfaces for instantiating and executing builds for a variety of target environments.
https://canonical-craft-providers.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
6 stars 20 forks source link

EXPERIMENTAL feat: keep lxc instances running #571

Open lengau opened 1 month ago

lengau commented 1 month ago

This is a quick proof of concept, but is not sufficient for production (by a long shot). Missing include:

  1. Wait time needs to be configurable
  2. Cancelling during a warmup could leave the container in an unknown state - needs investigation.

This speeds up the startup process by about 3 seconds and the stop process by about 2 on a fairly powerful laptop: image