Skip to main content

Re: Re: Re: [JAVA3D-INTEREST] Can I get an IndexedGeometryArrayfrom aShape3D?

1 reply [Last post]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Matthew Hilliard

>Thank you!I should write a code snippet to verify whether Array is faster
>than List in Java 1.4.2.

arrays ARE faster, but the speed difference is very small.
On my system (p4 @ 2.8 GHz w/ Java 1.4.2 and 1.5 ) the difference of
accessing a List vs. an array is less than 10ns on average, and what's
interesting is that the JIT will improve the performance of the List to
near convergence over time. If you do the List operations once (i.e. when
populating), and then covert to an array for later operations (feeding j3d
data), any List overhead is pretty much irrelevant as its a one-time cost.
Regardless, do what you want, its your software.

To unsubscribe, e-mail:
For additional commands, e-mail: