🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #540

Re: The Cost Of Casting In Java

#540
From: 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.
Technical Details
Message-ID: <9pumgu$doa$2@newstoo.ericsson.se>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail
References: <9psfbh$2v13$1@news.adamastor.ac.za>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,72bebc1fd897c86e
X-Google-Attributes: gid10a146,public
X-Google-Thread: f74b3,72bebc1fd897c86e
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 111a9f,72bebc1fd897c86e
X-Google-Attributes: gid111a9f,public
X-Google-Thread: fe48c,72bebc1fd897c86e
X-Google-Attributes: gidfe48c,public
X-Google-Thread: f5d71,72bebc1fd897c86e
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 10bb9b,72bebc1fd897c86e
X-Google-Attributes: gid10bb9b,public
X-Google-Thread: 113ae9,72bebc1fd897c86e
X-Google-Attributes: gid113ae9,public
X-Google-ArrivalTime: 2001-10-09 04:40:36 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail
From: nobody@eed.ericsson.invalid (Thomas Weidenfeller)
Newsgroups: comp.lang.java,comp.lang.java.help,borland.public.jbuilder.java.language,comp.lang.java.machine,comp.lang.java.programmer,microsoft.public.java.visualj++.compiler,microsoft.public.java.vm
Subject: Re: The Cost Of Casting In Java
Date: 9 Oct 2001 11:19:58 GMT
Organization: Ericsson Eurolab Deutschland GmbH, Germany
Lines: 15
Message-ID: <9pumgu$doa$2@newstoo.ericsson.se>
References: <9psfbh$2v13$1@news.adamastor.ac.za>
NNTP-Posting-Host: aquis74.eed.ericsson.se
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 1.0b.1