Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 09:43:45 +0100
Casey Hawthorne wrote:
> To increase speed on manipulating big arrays in Java with minimal
> bounds checking, would it be possible to have some operators that only
> do bounds checking at the boundaries of the array?
You could always write custom array operations in JNI. Otherwise the answer is
no (not without a change to the JVM design, which isn't going to happen).
OTOH, it is /said/ (I find it plausible, but I can't confirm it from personal
knowledge) that the big name JVM's JITers are pretty aggressive about removing
bounds checks in the generated code, so there might not be much to gain from
special operators.
-- chris
.
- Follow-Ups:
- References:
- To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- From: Casey Hawthorne
- To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Prev by Date: Re: how to detect a hard link in Java?
- Next by Date: Re: Commenting in Java
- Previous by thread: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Next by thread: Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...
- Index(es):
Relevant Pages
|