summaryrefslogtreecommitdiff
path: root/lib/rpmug.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-10Move string hash function to librpmio and rename for namespacingPanu Matilainen1-1/+1
- There are places in rpmio and build that would benefit from hashing, but hashFunctionString() being internal to librpm has prevented that. Rename to rstrhash() to resemble the other foo in rpmstring.h for minimal namespacing as its now public function and update callers. - Also mark the function as "pure" - it only looks at its arguments. This is one of the busiest functions in entire rpm so any optimization no matter how minor is well worth it. - Hereby awarding hashFunctionString() with the grand prize for the Most Moved Around Function in rpm ;)
2011-02-07Fix segfault when building more than one rpm (RhBug:675565)Panu Matilainen1-1/+1
- Remember to set the static string cache pointer to NULL on free, duh
2010-12-16Add a "unique string cache" to rpmugPanu Matilainen1-0/+28
- Used for storing unique strings just once
2010-12-15Split user+group caching to separate source (again), renamePanu Matilainen1-0/+174
- We'll want to unify this and the similar caching done in librpmbuild, so we need to expose these in the ABI at least, rename to get them namespaced and use a separate source module (again) as this is a pretty distinct functionality. - This would really belong to librpmio but leaving here for now...