On the 1.10-cache-improvements branch:
Instead of carefully limiting the key sizes and checking those limits,
make all length fields in entry_t and entry_key_t SIZE_Ts. This saves
a number of down-/shortening casts as well as key-length limiter code.
The limit for what item size we will actually cache stays in place.
On the downside, we each entry bucket (entry_group_t) can hold only 7
entries now - down from 10 in /trunk. This is due to added fields to
and enlarging fields in the entry_t struct.
This practically undoes r1679679 and r1679687.
* subversion/libsvn_subr/cache-membuffer.c
(entry_key_t): Extend KEY_LEN to size_t and reorder members to give them
natural alignment.
(entry_t): Extend item SIZE element to size_t.
(membuffer_cache_set_internal,
membuffer_cache_set_partial_internal): Remove obsolete shortening casts.
(combine_long_key,
svn_cache__create_membuffer_cache): Use size_t with all lengths. Drop key
length limiter code and conversions.
git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.10-cache-improvements@1679859 13f79535-47bb-0310-9956-ffa450edef68
1 file changed