Re: modulus %

From: Leor Zolman (leor_at_bdsoft.com)
Date: 03/23/04


Date: Tue, 23 Mar 2004 16:09:00 GMT

On Tue, 23 Mar 2004 22:20:06 +0800, "Lem" <hjlem@pacific.net.sg> wrote:

>Is the modulus (%) operator computationally expensive, compared to additions
>and assignments?
>

Profile. I find it rather difficult to imagine that a % expression is going
to be a bottleneck, but anything's possible...
        -leor

>Thanks in advanced,
>Lem
>

-- 
Leor Zolman --- BD Software --- www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix  
C++ users: Download BD Software's free STL Error Message Decryptor at:
   www.bdsoft.com/tools/stlfilt.html


Relevant Pages

  • Re: How does directx work - World or View transforms and rotations
    ... what's slow from the profile measurements. ... bottleneck to reveal the next most important bottleneck. ... Virtually all of the time in graphics, "optimizing away the ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Finding Bottlenecks
    ... There are also tools that you can profile your code with, although most of them cost at least something. ... I have a website that functions fine locally, but when published to the server it develops a bottleneck during loading some of the pages. ... Basically what happens is the page loads to about 25% then it freezes for anything from 10 - 40 seconds, before suddenly loading the rest of the page. ... Strangely enough this doesn't seem to occur in Firefox although Firefox displays quicker it seems to do whatever is holding IE up in the background so you get the illusion of it loading quicker. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Take a deep breath...
    ... > maybe .Net actually is the bottleneck in your case? ... Like I keep saying, there are no bottlenecks, at least not subjectively. ... Those areas that have complex non-disk based processing work so fast you ... so there has never been a need to profile. ...
    (borland.public.delphi.non-technical)
  • Re: Jock of the Bushveld
    ... > I would imagine ... > that the profile of someone who would be interested in this item would be ... > dozen copies of the first edition listed on ABE ... Oops! ...
    (rec.collecting.books)
  • Re: Jock of the Bushveld
    ... > I would imagine ... > that the profile of someone who would be interested in this item would be ... > dozen copies of the first edition listed on ABE ...
    (rec.collecting.books)