This is preparation/accompanying project to my school thesis.

Fontconfig is library that keeps database of fonts installed in system and gives applications ability to query it. Fontconfig is currently searching the database in naive way and can be quite slow if there is many fonts installed. Most applications make several font queries when starting and fontconfig is slowing down their start.

I want to explore what kind of queries are most common and experiment with optimizing fontconfig for them. Plus prepare some benchmarks and tests to help with measuring and testing for correctness.

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 15

Activity

  • about 7 years ago: michalsrb started this project.
  • about 7 years ago: michalsrb originated this project.

  • Comments

    • michalsrb
      about 7 years ago by michalsrb | Reply

      Tests and benchmarks: https://github.com/michalsrb/fontconfigtests

      Experimental optimizations: https://github.com/michalsrb/fontconfig

      Speedups so far:

      Benchmark Time Old New --------------------------------------------------------------------------- FontMatch/commonkde1 -0.98 15765243 ns 322476 ns FontMatch/commongnome1 -0.61 15344023 ns 5975109 ns FontMatch/commonchromium1 -0.60 15106001 ns 6042884 ns FontMatch/commonfirefox1 -0.58 14131375 ns 5998516 ns FontMatch/emptypattern -1.00 324894 ns 621 ns FontMatch/existingfile -0.83 1755908 ns 298664 ns FontMatch/notexistingfile -0.83 1759973 ns 299809 ns FontMatch/existingfilewithglobs -0.86 2101003 ns 299053 ns FontMatch/existingfamily -0.35 452647 ns 292617 ns FontMatch/notexistingfamily -0.04 446150 ns 428687 ns FontSort/commonkde1 -0.41 16694229 ns 9938746 ns FontSort/commonkde2 -0.21 10993081 ns 8646657 ns FontSort/commonfirefox1 -0.34 16684090 ns 11008502 ns FontSort/commonfirefox2 -0.40 17589659 ns 10637453 ns FontSort/commonfirefox3 -0.30 10923228 ns 7685467 ns FontSort/emptypattern +0.03 2381994 ns 2465136 ns FontList/emptypattern -0.06 7764091 ns 7306565 ns FontList/existingfile -0.44 1528245 ns 855962 ns FontList/notexistingfile -0.43 1521264 ns 861424 ns FontList/existingfilewithglobs -0.44 1440867 ns 802007 ns FontList/existingfamily -0.22 279715 ns 219578 ns FontList/notexisting_family -0.21 266335 ns 211260 ns

    Similar Projects

    This project is one of its kind!