diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2014-06-09 21:53:01 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2014-06-12 17:02:10 -0400 |
commit | 75abdaf5c8e8b14c3e9e94ff5c563091594a32cf (patch) | |
tree | 9502d62093e20d402ac45628c2a29a33cd1dfdb5 /src/fcobjs.h | |
parent | cd9631d83e51bab95413a8aa0e8ecc68f3e3a0fc (diff) | |
download | fontconfig-75abdaf5c8e8b14c3e9e94ff5c563091594a32cf.tar.gz |
Deprecate FC_HASH and don't compute it
It was added without proper measurement and a fuzzy possible
use-case (font servers) in mind, but reality check shows that
this significantly slows down caching. As such, deprecate it
and do NOT compute hash during caching.
Makes caching two to three times faster (ignoring the 2 second
delay in fc-cache).
Diffstat (limited to 'src/fcobjs.h')
-rw-r--r-- | src/fcobjs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcobjs.h b/src/fcobjs.h index 72e71f9..dc3d834 100644 --- a/src/fcobjs.h +++ b/src/fcobjs.h @@ -44,7 +44,7 @@ FC_OBJECT (AUTOHINT, FcTypeBool, NULL) FC_OBJECT (GLOBAL_ADVANCE, FcTypeBool, NULL) /* deprecated */ FC_OBJECT (FILE, FcTypeString, FcCompareFilename) FC_OBJECT (INDEX, FcTypeInteger, NULL) -FC_OBJECT (RASTERIZER, FcTypeString, FcCompareString) +FC_OBJECT (RASTERIZER, FcTypeString, FcCompareString) /* deprecated */ FC_OBJECT (OUTLINE, FcTypeBool, FcCompareBool) FC_OBJECT (SCALABLE, FcTypeBool, FcCompareBool) FC_OBJECT (DPI, FcTypeDouble, NULL) @@ -66,6 +66,6 @@ FC_OBJECT (LCD_FILTER, FcTypeInteger, NULL) FC_OBJECT (NAMELANG, FcTypeString, NULL) FC_OBJECT (FONT_FEATURES, FcTypeString, NULL) FC_OBJECT (PRGNAME, FcTypeString, NULL) -FC_OBJECT (HASH, FcTypeString, FcCompareHash) +FC_OBJECT (HASH, FcTypeString, FcCompareHash) /* deprecated */ FC_OBJECT (POSTSCRIPT_NAME, FcTypeString, FcComparePostScript) /* ^-------------- Add new objects here. */ |