Hi,
I have cpp file which consist nested templates. Compilation time
without optimization is 1-2 minutes, with -O2 turned on more then 5
hours. :( Could anybody help with that problem?
AIX 5.2, Visual Age C++ 6 compiler
#include <pair>
using namespace std;
// value
typedef
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
std::pair
<
int,
int
internal_value; 8 1763 vi*****@gmail.com wrote: I have cpp file which consist nested templates. Compilation time without optimization is 1-2 minutes, with -O2 turned on more then 5 hours. :( Could anybody help with that problem? AIX 5.2, Visual Age C++ 6 compiler
[..nested templates..]
Have you tried contacting their Technical Support?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask vi*****@gmail.com wrote: of course
Really?
Brian
--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header. vi*****@gmail.com wrote: of course
So, what did their Technical Support tell you about this?
Regards,
Peter Jansson vi*****@gmail.com wrote: Hi, I have cpp file which consist nested templates. Compilation time without optimization is 1-2 minutes, with -O2 turned on more then 5 hours. :( Could anybody help with that problem? AIX 5.2, Visual Age C++ 6 compiler
#include <pair> using namespace std; // value typedef std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, int > > > > > > > > > > > > > > > > internal_value;
what do you use this ugly beast for?
Fei Liu wrote: vi*****@gmail.com wrote: Hi, I have cpp file which consist nested templates. Compilation time without optimization is 1-2 minutes, with -O2 turned on more then 5 hours. :( Could anybody help with that problem? AIX 5.2, Visual Age C++ 6 compiler
#include <pair> using namespace std; // value typedef std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, std::pair < int, int > > > > > > > > > > > > > > > > internal_value;
what do you use this ugly beast for?
Too bad you can't compile on a DOS machine with huge ram drives. I have
tried things, not quite this big, but the old stuff sure beats the new
Windows junk. Even Linuxis getting a lot of bloat. I miss the good old
days but not the slow computers with only 16 MB of memory.
Bill Baka vi*****@gmail.com wrote: Hi, I have cpp file which consist nested templates. Compilation time without optimization is 1-2 minutes, with -O2 turned on more then 5 hours. :( Could anybody help with that problem? AIX 5.2, Visual Age C++ 6 compiler
#include <pair> using namespace std; // value typedef std::pair < int, std::pair < int, std::pair < int, std::pair <
.... std::pair < int, int >
.... > > internal_value;
You might swith to boost::tuple or std::tri::tuple for such a beast, or even
look at boost::mpl for alternatives that have been architected with compile
efficiency in mind.
Jeff Flinn This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Novice |
last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
|
by: PG |
last post by:
Hi gurus,
I have AIX visual age C++ compiler version 5.0.2.3. I have a simple
hello world program that gives compilation errors. Any help will be
appreciated. Thanks
PG
***test.cpp****
...
|
by: Adriano Coser |
last post by:
Hello.
I'm trying to compile a DLL with Visual C++ .NET 2003 and I'm facing
an error declaring template variables with prototypes.
I don´t know if I'll be able to explain my scenario, but...
|
by: Daniel Walzenbach |
last post by:
Hi,
I have a web application which sometimes throws an “out of memory”
exception. To get an idea what happens I traced some values using performance
monitor and got the following values (for...
|
by: alban |
last post by:
Hello
I have got some problems of compilation on a AIX IBM,
I use the XLC compilator (And I can't install another one).
I try to compile code Pro*c ".pc" (oracle), I need do a pre-compilation...
| |
by: richardlang |
last post by:
Anyone out there ever come across a preprocessor macro that compares an
argument value against the predefined __DATE__ macro in order to
control conditional compilation based on date.
Something...
|
by: pleexed |
last post by:
hello,
this is my first post in a newsgroup, i hope i do everything right :)
first of all, i am sure there have been a lot of "are templates slow?"
questions around, but i think what i would...
|
by: David Portabella |
last post by:
Hello,
I have the following template class:
++++++++++++++++++++++
template <class Valueclass Test {
public:
void f() {
if (typeid(Value) == typeid(string))
cout << "Value is a string" <<...
|
by: Alex Vinokur |
last post by:
Hi,
I have compilation problem on SUN CC compiler with template while
using option -m64 (64-bit addressing model).
No problem while using option -m32 (32-bit addressing model)
$ CC -V
CC:...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |