Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: How to make...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 30 of 72 Topic 25415 of 28006
Post > Topic >>

Re: How to make it faster?

by Bart <bc@[EMAIL PROTECTED] > Apr 8, 2008 at 06:51 AM

On Apr 8, 1:14=A0pm, istillsh...@[EMAIL PROTECTED]
 wrote:
> On Apr 8, 6:30 am, rich...@[EMAIL PROTECTED]
 (Richard Tobin) wrote:
>
> > In article
<0b783269-59d1-40f2-bf1d-11e7573f5...@[EMAIL PROTECTED]
>,
>
> > =A0<istillsh...@[EMAIL PROTECTED]
> wrote:
> > >I did not set -O2 flag.
>
> > Well do so!
>
> > -- Richard
> > --
> > :wq

> Can changing the function to macro definition make things faster? =A0I
> know that calling a function itself but without executing its body
> takes tiny time. =A0Suppose it would take 10e-5 secs per call.
=A0Calling
> it 1,000,000 would take 10 secs.

10usec per call?

More like 10nsec, 1000 times faster. It would make your program 10msec
faster.

If possible, call your routine and comment out the product loop. Or
just call it 1000000 times with no content, to see how much the
overhead actually is.


--
Bart
 




 72 Posts in Topic:
How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 10:39:49 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 10:43:03 
Re: How to make it faster?
"Bartc" <bc@  2008-04-07 18:36:53 
Re: How to make it faster?
Wolfgang Draxinger <wd  2008-04-08 01:56:47 
Re: How to make it faster?
"Malcolm McLean"  2008-04-07 18:50:28 
Re: How to make it faster?
Flash Gordon <spam@[EM  2008-04-07 20:32:51 
Re: How to make it faster?
Willem <willem@[EMAIL   2008-04-07 18:03:25 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-07 18:27:45 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-07 15:04:29 
Re: How to make it faster?
jacob navia <jacob@[EM  2008-04-07 22:54:29 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-07 21:39:12 
Re: How to make it faster?
Fei Liu <fei.liu@[EMAI  2008-04-07 17:31:33 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-07 21:34:46 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 15:40:39 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 11:04:45 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-08 15:58:13 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 15:46:35 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-07 23:00:23 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-07 23:02:57 
Re: How to make it faster?
Keith Thompson <kst-u@  2008-04-07 21:23:54 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 20:31:19 
Re: How to make it faster?
Keith Thompson <kst-u@  2008-04-07 21:30:20 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-08 10:30:26 
Re: How to make it faster?
user923005 <dcorbit@[E  2008-04-07 22:46:43 
Re: How to make it faster?
Richard Heathfield <rj  2008-04-08 06:18:06 
Re: How to make it faster?
Bart <bc@[EMAIL PROTEC  2008-04-08 02:49:03 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 06:07:18 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 06:14:19 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-08 14:42:58 
Re: How to make it faster?
Bart <bc@[EMAIL PROTEC  2008-04-08 06:51:35 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-08 07:25:31 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-08 14:51:25 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:47:08 
Re: How to make it faster?
Willem <willem@[EMAIL   2008-04-08 15:51:08 
Re: How to make it faster?
jacob navia <jacob@[EM  2008-04-08 18:16:09 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:53:20 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 12:35:41 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 14:00:33 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:14:56 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:54:49 
Re: How to make it faster?
Flash Gordon <spam@[EM  2008-04-08 18:47:21 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:57:11 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 09:00:34 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 10:16:57 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 13:59:57 
Re: How to make it faster?
jacob navia <jacob@[EM  2008-04-08 20:17:06 
Re: How to make it faster?
Bart <bc@[EMAIL PROTEC  2008-04-08 11:26:53 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 14:15:38 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 17:28:57 
Re: How to make it faster?
Ben Bacarisse <ben.use  2008-04-08 22:30:54 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 15:26:42 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 15:31:31 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 15:37:34 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:09:03 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:19:58 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:17:56 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:35:48 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:44:01 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:20:02 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:52:44 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-09 11:01:59 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 11:29:25 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 11:44:39 
Re: How to make it faster?
Keith Thompson <kst-u@  2008-04-09 13:42:16 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 11:48:08 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-09 11:50:56 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 15:51:42 
Re: How to make it faster?
Peter Nilsson <airia@[  2008-04-09 16:20:48 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-09 16:54:47 
Re: How to make it faster?
"christian.bau"  2008-04-11 15:35:24 
Re: How to make it faster?
"christian.bau"  2008-04-11 15:56:18 
Re: How to make it faster?
user923005 <dcorbit@[E  2008-04-11 18:35:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:04:07 CST 2008.