🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by jochem Mon, 08 Oct 2001 15:05
The Cost Of Casting In Java
#538
Author: jochem
Date: Mon, 08 Oct 2001 15:05
7 lines
1834 bytes
Hi There,

I am trying to find out the relative costs of bitshifting vs casting in java
(on primitive types).
Can anyone give me any suggestions?

Cheers Jochem
Re: The Cost Of Casting In Java
#540
Author: Thomas Weidenfeller
Date: Tue, 09 Oct 2001 11:19
14 lines
2144 bytes
"jochem" <jmelis@cs.uct.ac.za> writes:
> I am trying to find out the relative costs of bitshifting vs casting in java
> (on primitive types).
> Can anyone give me any suggestions?

Why don't you write some small test programs to figure it out for your
environment? We don't know your VM, we don't know your OS, we don't
know the purpose for this (this isn't by any chance homework?)

/Thomas

BTW: There is no need to do such extensive cross-posting. If we are
     supposed to spend some time with YOUR problem, you are supposed to
     spend some time to find the right news group.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads