passing class to a function in c++ - performance question
From: Profil1 (remigiusz66_at_neostrada.pl)
Date: 03/30/05
- Next message: Peter Koch Larsen: "Re: Class hierarchy of exceptions (Ada, C++)"
- Previous message: Siemel Naran: "Re: How to encript header files."
- Next in thread: BigBrian: "Re: passing class to a function in c++ - performance question"
- Reply: BigBrian: "Re: passing class to a function in c++ - performance question"
- Reply: Karl Heinz Buchegger: "Re: passing class to a function in c++ - performance question"
- Reply: Gianni Mariani: "Re: passing class to a function in c++ - performance question"
- Reply: lilburne: "Re: passing class to a function in c++ - performance question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 12:02:07 +0200
Hi,
I'm writing a code that has to be as efficient as possible both in terms of
memory use and execution speed. I'll have to pass a class instance (which is
an 'intelligent' array) to a function (multiple times). Taking this into
consideration, should I pass it as a pointer or reference? Is there any book
or site that teaches stuff like this (optimizing code for performance)?
thanks for any help
- Next message: Peter Koch Larsen: "Re: Class hierarchy of exceptions (Ada, C++)"
- Previous message: Siemel Naran: "Re: How to encript header files."
- Next in thread: BigBrian: "Re: passing class to a function in c++ - performance question"
- Reply: BigBrian: "Re: passing class to a function in c++ - performance question"
- Reply: Karl Heinz Buchegger: "Re: passing class to a function in c++ - performance question"
- Reply: Gianni Mariani: "Re: passing class to a function in c++ - performance question"
- Reply: lilburne: "Re: passing class to a function in c++ - performance question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|