Re: [PATCH] symbol lookup cache

Joel Brobecker
2014-12-21T21:01:56Z

> Let's first verify the efficacy of the cache, collect some data, and
> go from there.
> And the next step after that, besides improving the efficiency of the
> cache (*1), if the data suggests it, is I think to explore dynamically
> adjusting the cache size.
> And if, after that, there are still some important cases where gdb
> can't do a good enough job on its own, *then* I'd be happy to add some
> knobs to control the cache size. Maybe the knob we will want is not
> so much to control the cache size but how it grows.

do you see the amount of data in the cache being all that much?
I haven't looked at your implementation, but for Ada, the cache is
updated when symbols are looked up, usually due to a user querying
something. So, I don't the cache to be all that big, and FWIW,
we have never even had to think of having a dynamic hash size.

--
Joel