Well, here is what I am dealing with,  The XML file is actually an XML-
defines SVG file that represents a vector drawing. It is a requirement
that the files remain in SVG, as the user will be loading and
unloading these files on and off of the device, editing and viewing
them with my app.  So we are stuck with SVG/XML as the data source and
destination (I have conversion performance issue on both sides of this
equation, both from String -> float coming in, and from float ->
String going back out).

A mapping from String <-> float would be a really novel solution here,
just trying to figure out now how to implement it.

In answer to some of your other questions, no, I have to read the
entire XML file in at 'load' time (as the user needs to see all of
their drawing).  I'm not sure about the need for a timestamp in this
case, wouldn't any mappings created be, essentially, permanent?

If I create a mapping in a volitile data structure that is created at
run-time, I'll need to seed it somehow, either with entries as they
are read, or create some 'smart' routine that does this work in the
background.

Just thinking out loud here, thanks for any input.

On Apr 14, 3:14 pm, Marcin Orlowski <[email protected]> wrote:
> On 14 April 2011 20:43, Paul <[email protected]> wrote:
>
> > Ah, I see, create a kind of mapping from String -> float, and first
> > check the mapping before performing the conversion?
>
> Try to go as simple as possible. The less logic the faster is would possibly
> go. How is your data modified? By just adding new entries in time? In
> portions? Can you separate each portion? Can you try to use timestamp to
> find out when previous conversion ended? Can you have more smaller files
> instead of one big? And finally? Can't you drop XML and have your sorce data
> in other format so you could drop the need of conversion completely?
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
> *Date In Tray* <http://bit.ly/dateintraypro> - current date at glance...
> WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
> *Twitter<http://webnetmobile.com/twitter/>
> *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to