Container keys

Martin Hunt hunt@redhat.com
Sat Apr 30 19:21:00 GMT 2005


On Sat, 2005-04-30 at 14:24 +0100, John Levon wrote:

> I'm concerned by the mention in the docs that only "one or two strings,
> or a long" is acceptable as a key to the associative containers. Why?
> It seems unnecessarily restrictive. Certainly in my use of DTrace it was
> rather common to use numerous data items as keys to a single container.

We could support an arbitrary number of keys, but it would be less
efficient than supporting two.  In searching dtrace examples, I never
saw anything using more than two keys.  Do you have some examples of
where this is useful?

Martin




More information about the Systemtap mailing list