2014/1/16 John P. Rouillard <rou...@cs.umb.edu>: > > Hi everybody: > > I have an application where I need a bunch of contexts to save > state/fact information. There are a few ways I can structure this. > > I can either have 1000 real contexts or 1 context with 1000 aliases. > > In almost every case there is one name that will be used for accessing > the data storage area of the context, but any of the context names > will be checked for existance (via exists action or in a context > expression). > > IIRC the name of a context and any alises for it are stored in the > same way, so a check for existance is just as fast regardess of wheter > it is a "context" or an "alias". Is this correct?
Yes, that's correct, since internally there is no difference between the initial name and later alias names. They are all implemented as keys in a perl hash, and they point to the same context data structure. Existance check for any context name is implemented as a key lookup in a perl hash, so the speed is the same for all names the context has. kind regards, risto > > -- > -- rouilj > John Rouillard > =========================================================================== > My employers don't acknowledge my existence much less my opinions. > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users