diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-02-05 22:37:27 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-02-05 22:37:27 +0200 |
commit | 3d314301ca11b10d2fed8f7a48acb735847d78b2 (patch) | |
tree | 6c7e3def148329c97039f056873f041b528c6114 /lib/rpmfi_internal.h | |
parent | b04c67136f6e980f7eeabd5708e37ac078b0275c (diff) | |
download | librpm-tizen-3d314301ca11b10d2fed8f7a48acb735847d78b2.tar.gz librpm-tizen-3d314301ca11b10d2fed8f7a48acb735847d78b2.tar.bz2 librpm-tizen-3d314301ca11b10d2fed8f7a48acb735847d78b2.zip |
Use per-rpmfi string cache for file capability strings
- most packages wont have file capabilities attached at all, and even
where present, the files with capabilities are likely to be few and
far in between, avoid wasting memory
Diffstat (limited to 'lib/rpmfi_internal.h')
-rw-r--r-- | lib/rpmfi_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rpmfi_internal.h b/lib/rpmfi_internal.h index 06de2aaf9..c918defc4 100644 --- a/lib/rpmfi_internal.h +++ b/lib/rpmfi_internal.h @@ -54,7 +54,8 @@ struct rpmfi_s { char * fstates; /*!< File state(s) (from header) */ const rpm_color_t * fcolors;/*!< File color bits (header) */ - const char ** fcaps; /*! File capabilities (header) */ + strcache fcapcache; /*!< File capabilities cache */ + scidx_t * fcaps; /*!< Index to file cap(s) cache */ const char ** cdict; /*!< File class dictionary (header) */ rpm_count_t ncdict; /*!< No. of class entries. */ |