Re: Effectiveness of String Cache?
Jon Forrest <[email protected]> Sun, 9 Jan 2022 10:01:18 -0800
| Newsgroups | gmane.comp.gnu.make.devel |
|---|---|
| Message-ID | <[email protected]> |
I'll answer my own question. I saw the 44 strings number by running gmake 3.81 on i386-apple-darwin11.3.0. Updating this to 4.3 on x86_64-apple-darwin20.1.0 showed much different results, e.g. # strcache buffers: 8 (6) / strings = 3165 / storage = 59951 B / avg = 18 B # current buf: size = 8162 B / used = 2889 B / count = 97 / avg = 29 B # other used: total = 57062 B / count = 3068 / avg = 18 B # other free: total = 72 B / max = 21 B / min = 1 B / avg = 10 B # strcache performance: lookups = 18571 / hit rate = 82% # hash-table stats: # Load=3165/8192=39%, Rehash=0, Collisions=1755/18571=9% I'd say this answers my question by showing that the string cache is indeed effective. Jon