On Sep 23, 8:49 am, Glen Kimsey <gkim...@gmail.com> wrote:
> I tried to find significant ways that I could avoid allocation, but
> the StringTokenizer is the main thing that I'm calling 'new' on and I
> didn't see any way to avoid doing that for every line.  Your
> suggestion of using regexs for a parser kind of threw me off, because
> I didn't even see that as a possibility.  I'll have to look into that
> and see what you mean.

>From the JavaDoc for StringTokenizer:

"StringTokenizer is a legacy class that is retained for compatibility
reasons although its use is discouraged in new code. It is recommended
that anyone seeking this functionality use the split method of String
or the java.util.regex package instead."

> I also didn't know the G1 didn't have floating-
> point hardware.  Will this likely be the case for other android phones
> in the near future?  This information combined with Bart's suggestion
> to stick with quaternions means I'll very likely be removing those
> calls to acos and sqrt entirely.

It also lacks an integer divide instruction, so go easy on divisions
and modulus. :-)

If you do a google search for "ODROID" you can see an example of a
device with hardware FP.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to