Re: [Mathlib-develop] Change to MathLibObject/VariableList implementation
Status: Beta
Brought to you by:
st_mueller
From: Stefan M. <st...@he...> - 2003-07-23 19:42:56
|
HI Mark, I aggree. Please go ahead. Stefan. mark wrote: > Hi, > > Both the MathLibObject and the VariableList classes implement lists of named > variables. They are both implemented using ArrayLists. > > This is ineficient since when finding a variable by name it is necessary to > iterate through the list until we find the correct variable. > > I think that it would be better to implement these classes using a HashMap > since it would speed up variable access and is a better fit to the problem. > > The only downside I can see is that the code needed to iterate through a > hashes key/value pairs is, to put it politely, suboptimal. > > What I will most likely do is work on this in a local copy of the code and > only commit it if there aren't any problems. > > Any comments? > > Best Regards > > Mark Sparshatt > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Mathlib-develop mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/mathlib-develop > -- ------------------------------------ Dr.-Ing. Stefan Mueller email: St...@he... ------------------------------------ |