← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] ~raharper/cloud-init:default-lang-c-utf8 into cloud-init:master

 

Current Ubuntu (and Debian) images already include the C.UTF-8 locale.  Updating the default in cloud-init (for Ubuntu and Debian) means we can realize a non-zero speed up during boot.

Building cloud-init from this branch, injecting it into an artful image and comparing time spent in locale-gen vs. existing artful image with older cloud-init (which will locale-gen en_US.UTF-8) there's a non-zero improvement

# existing artful image
% lxc file pull a3/var/log/cloud-init.log - | PYTHONPATH=`pwd` python3 -m cloudinit.analyze blame -i -  | grep locale
     01.07200s (modules-config/config-locale)

# modified artful image (updated cloud-init, LANG=C.UTF-8 in /etc/default/locale)
% lxc file pull a1/var/log/cloud-init.log - | PYTHONPATH=`pwd` python3 -m cloudinit.analyze blame -i -  | grep locale
     00.00200s (modules-config/config-locale)

-- 
https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/329152
Your team cloud-init commiters is requested to review the proposed merge of ~raharper/cloud-init:default-lang-c-utf8 into cloud-init:master.


References