473,385 Members | 1,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

optimizing code

Can anyone point me toward some decent sources that discuss code
optimization for C++ code running on the WinXP platform? I'm
interested in any discussion, books, URLs... *anything* related to
making code go faster.

I have the Meyers, Sutter, Josuttis, Stroustrup books so i know the
obvious stuff (inlining, removing temporary variables etc).

Any STL tips (other than those discussed in Meyer's book) would be
especially welcome.

Thanks for any help.
Jul 23 '05 #1
6 1198
Dylan wrote:
Can anyone point me toward some decent sources that discuss code
optimization for C++ code running on the WinXP platform? [...]


comp.os.ms-windows.programmer.win32

Have you seen/read "Efficient C++"? It's highly recommended.

V
Jul 23 '05 #2

"Dylan" <sp******@ontheball.com> wrote in message
news:jg********************************@4ax.com...
Can anyone point me toward some decent sources that discuss code
optimization for C++ code running on the WinXP platform? I'm
interested in any discussion, books, URLs... *anything* related to
making code go faster.

I have the Meyers, Sutter, Josuttis, Stroustrup books so i know the
obvious stuff (inlining, removing temporary variables etc).

Any STL tips (other than those discussed in Meyer's book) would be
especially welcome.

Thanks for any help.


I guess you´ll find more than enough hits with google. However, I´d
recommend to take a look at Todd´s excellent write-up of optimization
techniques using mainly templates. ("Techniques for Scientific C++" by Todd
Veldhuizen - http://osl.iu.edu/~tveldhui/papers/t...chniques.html).

HTH
Chris
Jul 23 '05 #3
On Tue, 15 Mar 2005 09:26:36 -0500, Victor Bazarov
<v.********@comAcast.net> wrote:
Dylan wrote:
Can anyone point me toward some decent sources that discuss code
optimization for C++ code running on the WinXP platform? [...]


comp.os.ms-windows.programmer.win32

Have you seen/read "Efficient C++"? It's highly recommended.

V


Hi Victor,

I looked at the reviews for this book this morning but they were not
good so I dismissed it. See
http://www.amazon.co.uk/exec/obidos/...900709-4079821

Have you read it?

cheers

Jul 23 '05 #4
On Tue, 15 Mar 2005 16:50:41 +0100, "Chris Theis"
<Ch*********@no-spam.cern.ch> wrote:

"Dylan" <sp******@ontheball.com> wrote in message
news:jg********************************@4ax.com.. .
Can anyone point me toward some decent sources that discuss code
optimization for C++ code running on the WinXP platform? I'm
interested in any discussion, books, URLs... *anything* related to
making code go faster.

I have the Meyers, Sutter, Josuttis, Stroustrup books so i know the
obvious stuff (inlining, removing temporary variables etc).

Any STL tips (other than those discussed in Meyer's book) would be
especially welcome.

Thanks for any help.


I guess you´ll find more than enough hits with google. However, I´d
recommend to take a look at Todd´s excellent write-up of optimization
techniques using mainly templates. ("Techniques for Scientific C++" by Todd
Veldhuizen - http://osl.iu.edu/~tveldhui/papers/t...chniques.html).

HTH
Chris


Hi Chris,

I've already wasted two hours trying to find information with google.
That's why I'm asking here.

Thanks for the link

Jul 23 '05 #5
Dylan wrote:
On Tue, 15 Mar 2005 09:26:36 -0500, Victor Bazarov
<v.********@comAcast.net> wrote:

Dylan wrote:
Can anyone point me toward some decent sources that discuss code
optimization for C++ code running on the WinXP platform? [...]
comp.os.ms-windows.programmer.win32

Have you seen/read "Efficient C++"? It's highly recommended.

V

Hi Victor,

I looked at the reviews for this book this morning but they were not
good so I dismissed it. See
http://www.amazon.co.uk/exec/obidos/...900709-4079821


I don't trust those.

I trust http://www.accu.org/bookreviews/public/index.htm
Have you read it?


Not thoroughly, just leafed through it in a store. I wish I had time,
though.

V
Jul 23 '05 #6
Victor Bazarov wrote:
Dylan wrote: I don't trust those.

I trust http://www.accu.org/bookreviews/public/index.htm


Also I'd point out ot the OP - I don't trust reviews from "professional
reviewers." I trust recommendations from "real" programmers, people
that actually use the books/tools etc. (not just play with them, write
about it, and move on)

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: A Future Computer Scientist | last post by:
A question: Is it really important to think about optimizing the native code or optimizing it for P Code? Or does the code you write make a difference?
14
by: Ian Richardson | last post by:
I'm writing a large Javascript application (uncompressed source around 400K) which is doing almost all the initialisation it needs to in a just-in-time manner. However, I have included an option...
4
by: J. Campbell | last post by:
From reading this forum, it is my understanding that C++ doesn't require the compiler to keep code that does not manifest itself in any way to the user. For example, in the following: { for(int...
3
by: PWalker | last post by:
Hi, I have written code that I would like to optimize. I need to push it to the limit interms of speed as the accuracy of results are proportional to runtime. First off, would anyone know any...
8
by: Hagen | last post by:
Hi, I have a question that you probably shouldn´t worry about since the compiler cares for it, but anyways: When you run your compiler with optimization turned on (eg. g++ with -Ox flag) and...
2
by: Brian | last post by:
In particular, this question goes out to the Microsoft C++ development team. Back in June, Ronald Laeremans posted the following message. Has the optimizing compiler been included with the...
4
by: Flashman | last post by:
A little confusing with setting up optimizing options with 2003 .NET. Under the Optimization Tab. if you set to /O1 or /O2 is the program ignoring the settings for Inline Function expansion,...
3
by: Nick Gilbert | last post by:
Hi, I have to send an array of prices for a list of products over XML. Currently my XML data looks like this: <ArrayOfProd> <Prod Code="productcode001"> <Prices> <P F="2005-01-01"...
24
by: Richard G. Riley | last post by:
Without resorting to asm chunks I'm working on a few small routines which manipulate bitmasks. I'm looking for any guidance on writing C in a manner which tilts the compilers hand in, if possible,...
6
by: peter_k | last post by:
Hi, Last time i'm interested in optimizing small c programs. On my studies we are sending the programs using the web interface to online judge. The person who will wrote the faster program get...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.