[development] Variables, lookups, and memory usage

Khalid B kb at 2bits.com
Thu Dec 15 18:31:23 UTC 2005

> The lookup_get() is functionally similar to the variable_get()
> function, except that it requires a $realm parameter:
>    lookup_get($realm, $name=null);  // without a name, it returns a
> keyed array of the whole realm
> My Questions:
>    1) There's potential overlap with variables and probably other
> stuff too.  Is there a better way?

I think discussed adding "domains" to the variable table a while back
on this list.
Can't remember who was it (Adrian?), but the code was very similar to what you
wrote, but was by module instead of Realm.

I like Realm better since it is more generic..

More information about the development mailing list