Subject: Re: UCS-2 vs. UCS-4
From: Jesper Skov (jskov@cambridge.redhat.com)
Date: Tue Jun 26 2001 - 11:01:21 CDT
>>>>> "Martin" == Martin Sevior <msevior@mccubbin.ph.unimelb.edu.au> writes:
>> Of course, if somebody cares enough to change for the simplistic
>> "only UCS-4" aproach to a more complex approach such Mike's one
>> that saves memory &/| speed, I will be more than happy, but it
>> seems to me that this time will be best spended fixing the
>> remaining 90% of memory.
>>
Martin> This requires careful pruning of the run, line and blocklayout
Martin> classes. In the end I don't think it is worth the
Martin> effort.
I would like to move the property data cached in the Runs to a new
PropertyRun class - which should be embedded in the document, but
invisible (unless you enable the option that'll make it render).
All the pointers in the Runs can then be replaced with a single
pointer to the previous PropertyRun in the document.
The document representation becomes leaner, updating properties
becomes faster and finding out how to draw the cursor becomes
simpler. (Oh, and developers and Word Perfect users will be able to get
formatting information rendered into the document as text.)
Of course, as all good ideas, these are vaporgains until someone gets
the time to implement and test if it makes a difference.
Jesper
This archive was generated by hypermail 2b25 : Tue Jun 26 2001 - 11:01:54 CDT