chiark / gitweb /
update-xfonts-traditional: process fonts in parallel
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Jan 2012 19:16:14 +0000 (19:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Jan 2012 19:19:32 +0000 (19:19 +0000)
commit60a64b7f4871c5e58537ab8d63a44c8a1141bffc
treead5e8318090a8a5b95365da4a3f0c237afe86d22
parent56d81099443c40faa64773c8a4dd83878b1a5913
update-xfonts-traditional: process fonts in parallel

Exploit multicore systems to speed up the runtime when processing
needs to be done.

Some timing results on a dual-core 1.50GHz Atom N550 laptop:

-j1
  real    0m43.035s
  user    0m43.319s
  sys     0m37.830s

-j2
  real    0m23.113s
  user    0m40.643s
  sys     0m30.486s

-j3
  real    0m21.910s
  user    0m43.707s
  sys     0m30.674s

-j4
  real    0m22.038s
  user    0m44.695s
  sys     0m31.058s

This system has hyperthreading so looks like 4 cores.  Based on this
I have set the number of processing threads to the number of cpus.
update-xfonts-traditional
update-xfonts-traditional.8