vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| We are using HP aCC compiler on a HP Itanium box ( 11.23) We are having some severe performance hits using exception handling ( try/catch ) scenarios. The online aCC documentation says: HP aC++ exception handling has no significant performance impact at compile-time or run-time. We have not found this to be the case at all. We are using the caliper measurement tool and it seems to indicate that the application is spending 50% or more of it cpu cycles in the unwind library. We are not using any special arguments to aCC as exception handling is enabled by default. I can provide a simple short example to illustrate the case if needed or requested. Any comments, suggestions, ideas would be mucn appreciated. Thank you, Fred B. |
| |||
| "zzfreddybb" <fred.bartholomai@acsatl.com> skrev i en meddelelse news:1105543717.379439.246550@z14g2000cwz.googlegr oups.com... > We are using HP aCC compiler on a HP Itanium box ( 11.23) > > We are having some severe performance hits using exception > handling ( try/catch ) scenarios. > > The online aCC documentation says: > HP aC++ exception handling has no significant performance impact at > compile-time or run-time. > > We have not found this to be the case at all. > > We are using the caliper measurement tool and it seems to indicate > that the application is spending 50% or more of it cpu cycles > in the unwind library. > > We are not using any special arguments to aCC as exception handling > is enabled by default. > > I can provide a simple short example to illustrate the case if needed > or requested. > > Any comments, suggestions, ideas would be mucn appreciated. > Thank you, > > Fred B. > I do not know your compiler, but my guess is lots of exceptions get thrown. In that case your program is likely to pay for that. Exceptions should be the exceptional, and if you do use them for other purposes, it is not unfair that you pay for the performance hit. Restructure your code so that exceptions only are thrown in exceptional cases. Apart from that, you should post to a newsgroup dedicated to your compiler. /Peter |
| ||||
| zzfreddybb (fred.bartholomai@acsatl.com) wrote: : HP aC++ exception handling has no significant performance impact at : compile-time or run-time. : We have not found this to be the case at all. As Peter says, this means you have no "significant performance impact", if you don't use throw. : Any comments, suggestions, ideas would be much appreciated. : Fred B. A future version (around May 2005 or so) of the unwind library (Unwind Express) will be 10 X faster in trivial cases. Also, are you using threads? >From: "Peter Koch Larsen" <pkspaml@mailme.dk> >In that case your program is likely to pay for that. Exceptions should be >the exceptional, and if you do use them for other purposes, it is not unfair >that you pay for the performance hit. >Apart from that, you should post to a newsgroup dedicated to your compiler. That would be the CXX-DEV mailing list. See: http://h21007.www2.hp.com/dspp/comm/...,1273,,00.html |