On Fri, Nov 30, 2001 at 03:48:27PM +0100, Jean-Marc Lasgouttes wrote: > As far as my benchmarking is concerned, not storing the lengths as > strings should do the trick. > Please discuss you planned changes before doing them.
I was thinking about this ;-) The "plan" looks like: Internal: - store value independently of unit (like LaTeX does). So accessing a value as "pixels" should be just one multiplication instead of the cureent "switch based solution" - remove inheritance relationship between LyXGlue and LyXLength (make Glue an aggregate of three Lenght, instead of inheriting one and aggregate the two others) - get rid of "virtual" afterward. Smaller. Faster... Interface: - LyXGlueLength constuctor should take three lengths, not three floats and three units... > I am surprised by this "small value" thing. Which "small value thing"? Andre' -- André Pönitz .............................................. [EMAIL PROTECTED]