Performance Diference between debug mode and release mode

Hi ,
I have been running an C++ multithreaded application with below technical specification on Production for more than an year.
OS - Solaris 10 , Opteron
Compiler - Sun Studio 11
Bit Mode - 64
I wanted to know what is the difference in the debug mode of an C++ application compiled with -g option and a release mode compiled with an optimization apart from the size of the binary and availability of debug information in case of a crash.
1) Does it degrade the performance of the application? If yes by what extent?
2) Does it use more memory?
3) Will switching from Debug to Release mode with some optimization coupled with any kind of risk like byte guard etc which could lead to dumps and all? If yes what could those be?
4) Which optimization level should be used?
Regards,
Ankur Verma

If you compile without any optimization (with or without -g), you will see a noticeable difference in performance in most programs compared to compiling with a reasonable level of optimization. How much difference depends on the nature of the program, and what percentage of time is spent in code regions that can benefit from the code improvements.
If you add -g, function inlining is disabled, which can dramatically reduce program performance. You can't debug a function that is generated inline, which is why this option disables inlining. (The +d option also disables inlining.)
If you use -g0 instead of -g, function inlining is preserved.
If you use -g0 with optimization, you get the advantages of optimization while still allowing limited debugging. (Local variables are not visible.) Beginning with Sun Studio 12 update 1, the current release, -g with optimization enables function inlining, so the effect of (for example) "-O -g" becomes the same as "-O -g0".
A few optimizations are disabled with -g or -g0, the exact difference depending on the compiler release and patch level. Most programs won't see a difference in performance.
Since you are running on Solaris 10, you should upgrade to the current release, Sun Studio 12 update 1. You will get many improvements and some new diagnostic tools. The new release is a drop-in replacement for Studio 11. You don't have to recompile any existing binaries, but you will want to recompile to get improved performance.
[http://developers.sun.com/sunstudio/]

Similar Messages

  • Diferences between Business Delegate and Session Facade

    Hi, I've been programming with java for a long time now, but recently decided to formally studing the J2EE patterns. By now I have the intuition of many of them but in paper looks a little confusing. Let me ask you what is a clear diference between Business Delegate and Session Facade.
    For me, exposing interfaces, hiding implementations and masking the complex interactions in the back are common factors in these patterns, could you please help me to identify diferences?

    There are more subtle differences, but the basic gyst is that the Business Delegate is used on the client/presentation tier. The Session Facade is used on the server/service tier. The Business Delegate typically performs a lookup of the SessionFacade which in turn fronts a service method (EJB or otherwise). The Business Delegate pattern is typically associated with J2EE remoting and its shortcomings.
    - Saish

  • What is the diference between apple tv and airport express?

    I can see tv online  in my tv whitout airport express??
    What is the diference between apple tv and new apple tv2?

    Airport is a router, Apple TV is a set-top box.
    http://www.apple.com/airportexpress/
    http://www.apple.com/appletv/
    Original Apple TV had a hard-drive, and has been discontinued for quite some time.
    ATV2 is a streaming only device, smaller, and use less power. It is also now discontinued
    The current model, ATV 3, has a better chip allowing for 1080P playback.

  • Ifference between change request and release request and transport request

    what is the difference between change request and release request and transport request and customization  request?

    Please refer to this link :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/38e1824eb711d182bf0000e829fbfe/frameset.htm
    Regards,
    Praveen
    Pl reward if helpful

  • Diference between view controler and navigation controler

    Hello,
    please what is the diference between view controler and navigation controler.
    Thank you for your answer

    a Navigation Controller is a Subclass of a View Controller. It has some additional Functionality. Please read the Apple Documentation for further information
    https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UINavigat ionController_Class/Reference/Reference.html
    https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIViewCon troller_Class/Reference/Reference.html

  • Diference Between Web Intelligence and Web Intelligence Rich Client?

    Hey Guys,
    Do you know the difference between Web Intelligence and Web Intelligence Rich Client?
    I was asked about that but i couldnt help. And i need to make a decision about a Web Intelligence training. I need to decide using one or another.
    Thanks
    Vegas

    Hi Vegas,
    The Webintelligence Rich Client (WRC) has all the features of the thin webintelligence client. But WRC makes use of the client processor and memory to do all post query processing while Infoview Webi sends every request to the server for processing.
    Thus you won't find any difference between the time taken to retrieve data from the database between these two clients. But there would be huge difference in performance while doing further analysis, formatting  with the data. Also you will not need connectivity to the network to do analysis and formatting using the WRC client.
    WRC client will help you to just retrieve the data on the fly and let you play around with it while you are traveling with no network connectivity.
    Thanks
    Mohanraj CP
    http://blog,mohanraj.org

  • Looking for Performance Comparisons Between JRockit 6 and Sun Java SE 6

    Hello,
    Can someone point me to some performance comparisons (benchmarks, etc.) between the JRockit and Sun JVMs?
    Thanks in advance.

    Hi Ben.
    Before I send to to the SPEC sites (which can be a tad hard to parse) I must ask - What application or type of application are you interested in? The answer will vary a bit depending on what you need.

  • Diferences between BEA Framework and Beehive

    Hi,
    Anyone can tell me what are the main diferences, in terms of functionalities, between BEA Framework and Beehive?
    Thanks,
    rjc

    You'd probably have to be a little more specific to get a better answer, but I can try to provide some information.
    I don't know what you mean by the "BEA framework". That could mean lots of things. Beehive is a framework for building web applications. It requires JDK 5. In WLS 9 and Workshop 9, Beehive is part of the "BEA framework". In WLS 8.1, Workshop applications use the NetUI framework, the functionality of which has been subsumed into Beehive.

  • What's the diference between Mac pro and iMac?

    I am really confused with this two things.
    I dont know what a Mac Pro is, but I thing is like a CPU?, I mean, can I conect it to my iMac?
    I'm really lost.
    Can someone exaplain what's the diference between those two?
    and do I can conect to my iMac?
    also any full explanation of what a Mac Pro is would be really helpful.

    My iMac specs:
    http://gyazo.com/a99277dd2c7e8e2616d984d9b83f283c
    http://gyazo.com/e125027d64b99e44be7b81bc91ce81f3
    http://gyazo.com/cc81c911df1760d38fcd00a2ce184064
    What I do on my iMac is:
    Gaming, Maya, After Effects, Nuke, Photoshop, Boujou, Realflow, 3DS Max (soon)
    Most of the time working with heavy 3D and Videos.
    I wanted to buy other 4GB Ram, and a Quadro 4000 (but its for Mac pro).
    My idea was (or still is) to buy a Mac Pro and expand my iMac capacity (processors, Ram, etc, but no one has answered me if i can do that), or else I was thinking if I can buy the Mac Pro and transfer my iMac stuff to it, then use the iMac monitor as a display of the Mac pro just while the iMac sells and then just buy a monitor (but again, no one has answered me if I can do that too)
    Please solve my questions

  • Diferences between Oracle Standart and Enterprise

    What's the differences between Oracle Standard and Enterprise Edition

    Check out this link
    http://technet.oracle.com/doc/oracle8i_816/server.816/a76962/ch4.htm#73594

  • Diference between Service tax and GTA service tax

    Hi,
    Kindly tell me what is the difference between service tax and GTA service tax and their accounting entries in SAP ?
    With Regards,
    Samrat

    Hi,
    Service Tax is charged by the service vendor and you pay the service tax to the vendor along with his payment. Once you pay the service tax, it is the liability of the vendor to pay the service tax amount collected from you to the Government.
    GTA is Goods Transport Authority. When you receive any service from any transport vendor, he will not charge service tax from you though it attracts service tax. It is your liability to pay the service tax to Government for the services received from the transport vendor.
    In case of normal service tax it is treated as input tax and credit for the same is taken (similar to excise). But, in case of GTA you have to create the liability at the time of receiving the service and make the payment directly to the Government.
    Regards
    Ramakrishna

  • Troubleshooting hints - differences between development environment and release environment

    Hello,
    I am using LabVIEW 8.6 for an application involving stepper motors.  We are using 2 Velmex stepper motor systems to run PIR targets for a manufacturing test.  The problem I am having is that the program runs fine in the states where it was developed but hangs approximately every 10th run when running in the manufacturing environment in China.  Since I am on the EAst coast there is the 12 hour time delay, and I am planning on doing a live support call to find out what is going on.  The person who installed the code made some modifications, but I am not aware of the differences.  He also may send his code here and see how it runs.
    The assumption I am making (based on past experiences from here in the States) is that the stepper motor interface is hanging.  since I can't recreate the problem here I can't troubleshoot it.
    With a past prooject I was working I did some code on one machine, and when I ran it on a different machine the order of execution for items in a sequence was different between the machines.  Has anyone run into this before?  Unfortunately for the task at hand the stepper motor has to run at the same time that analog data on multiple channels are being acquired.
    Any suggestions?
    Mike
    Mike

    Thanks for the reply.  I did think about putting in a producer-consumer.  It turns out that there was a problem with the computer it was being run on.  The computer was changed and the problem got better, although it did not go away.  The stepper motor was done through a com port talking to another hardware / software solution.  The tasks are truly independent and pass no data between them.  However, the other task being run involves collecting analog data and updating on a chart (and in one instance stimulating an analog output), and when the stepper motor starts the analog data collection is not updated on the chart.  I figure this could be because the charts are a memory hog.  No data is lost, and it is running, so I figure if it's not broke don't fix it.  It now occasionally locks up. I can run it here for 100 times with zero lock ups, and the last report I got was it ran 30 times in china before locking up.  I may have to start examining differences between their machine and my machine.
    Now as to the configuration management.  It needs to be clarified a wee bit.  I'm doing the initial code development / updating, and then we hand off to china, which can make code tweaks as needed.  They also have 3 lines running this program, and one of the items I did was to load the differences between lines from configiration files (INI files), and that I got working well.  We have fixture variables, items that vary between lines, and configuration items, which are I/O lines and what not.  The digital I/O and analog I/O referenced MAX tasks, and that worked well.  There are also a com port call for the stepper motor, and in another program an RF power meter, which had to be referenced from an INI file.  I will reccomend that they do their code development on one machine and create executables to store on the production lines.  We have been bouncing code back and forth from the team members from the states that are currently in china doing the install.
    Mike
    Mike

  • Diference Between Oracle ProcessConnect and Oracle Interconnect

    Hello,
    Does anyone knows the difference between Oracle ProcessConnect and Oracle Interconnect?
    I have already read the documentation, but I didn�t understand the main difference between them�.
    If somebody have experienced one of them, please tell me your opinion about these integration tools because I�m studying the possibility to user one of them in a data integration among several Oracle Databases in my company.
    I will be waiting for any reply.
    Bye

    Check out the white paper "Getting Started with the Oracle Workflow9i/2.6.2 Business Event System and Oracle9i Advanced Queueing"
    at http://otn.oracle.com/products/integration/workflow/workflow_wp_bes.pdf
    This describes Workflow's integration with AQ.
    Also, you could look at the "Using Workflow" chapter in the Oracle9iAS InterConnect User's Guide
    at http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/integrate.902/a92174/workflow.htm
    Regards,
    Clara
    IS there any document containing an example of integration of Oracle Workflow with Oracle InterconnectOracle AQ ? If so, please send me the link from where I can download it.

  • [8i] Performance difference between a view and an in-line view?

    I have a query with a few 'UNION ALL' statements... each chunk of the query that is joined by the 'UNION ALL' references the same in-line view, but in each chunk it is joined to different tables. If I actually create the view and reference it in each chunk, will it still run the query behind the view for each chunk, or will it only do it once? I just want to know if it will improve the performance of my query. And, I'm not talking about creating a materialized view, just a regular one.

    Because of the complexity of my query, I tried out a simple (really simple) example instead...
    First, I created my simple view
    Then, I ran a query with a UNION ALL in it against that view
    Next, I ran the same UNION ALL query, but using in-line views instead of the one I created, and these are the results I got:
    (against the view I created)
    890 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=RULE
       1    0   UNION-ALL
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'PART'
       3    2       INDEX (RANGE SCAN) OF 'PART_PK' (UNIQUE)
       4    1     TABLE ACCESS (BY INDEX ROWID) OF 'PART'
       5    4       INDEX (RANGE SCAN) OF 'PART_PK' (UNIQUE)
    Statistics
             14  recursive calls
              0  db block gets
           1080  consistent gets
            583  physical reads
              0  redo size
          54543  bytes sent via SQL*Net to client
           4559  bytes received via SQL*Net from client
             61  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
            890  rows processed
    timing for: query_timer
    Elapsed: 00:00:01.67(with in-line views)
    890 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=RULE
       1    0   UNION-ALL
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'PART'
       3    2       INDEX (RANGE SCAN) OF 'PART_PK' (UNIQUE)
       4    1     TABLE ACCESS (BY INDEX ROWID) OF 'PART'
       5    4       INDEX (RANGE SCAN) OF 'PART_PK' (UNIQUE)
    Statistics
              0  recursive calls
              0  db block gets
           1076  consistent gets
            582  physical reads
              0  redo size
          54543  bytes sent via SQL*Net to client
           4559  bytes received via SQL*Net from client
             61  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
            890  rows processed
    timing for: query_timer
    Elapsed: 00:00:00.70Here, it appears that the explain plans are the same, though the statistics and time show better performance with using in-line views...
    Next, I tried the same 2 queries, but using the CHOOSE hint, since the explain plans above show that it defaults to using the RBO...
    Here are those results:
    (hint + use view)
    890 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=HINT: CHOOSE (Cost=1840 Card=1071
               Bytes=57834)
       1    0   UNION-ALL
       2    1     TABLE ACCESS (FULL) OF 'PART' (Cost=920 Card=642 Bytes=3
              4668)
       3    1     TABLE ACCESS (FULL) OF 'PART' (Cost=920 Card=429 Bytes=2
              3166)
    Statistics
             14  recursive calls
              8  db block gets
          12371  consistent gets
          10850  physical reads
              0  redo size
          60726  bytes sent via SQL*Net to client
           4441  bytes received via SQL*Net from client
             61  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
            890  rows processed
    timing for: query_timer
    Elapsed: 00:00:02.90(hint + in-line view)
    890 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=HINT: CHOOSE (Cost=1840 Card=1071
               Bytes=57834)
       1    0   UNION-ALL
       2    1     TABLE ACCESS (FULL) OF 'PART' (Cost=920 Card=642 Bytes=3
              4668)
       3    1     TABLE ACCESS (FULL) OF 'PART' (Cost=920 Card=429 Bytes=2
              3166)
    Statistics
              0  recursive calls
              8  db block gets
          12367  consistent gets
          10850  physical reads
              0  redo size
          60726  bytes sent via SQL*Net to client
           4441  bytes received via SQL*Net from client
             61  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
            890  rows processed
    timing for: query_timer
    Elapsed: 00:00:02.99Obviously, for this simple example, using the CHOOSE hint caused worse performance than letting it default to the RBO (though the explain plans still look the same to me), but what I find interesting is that when I used the hint, the version of the query using the in-line view became at least equivalent to the one using the view, if not worse.
    But, based on these results, I don't know that I can extrapolate to my complex query... or can I? I'm thinking I'm going to have to actually go through and make my views for the complex query and test it out....

  • Diference between Airport Express and Extreme

    What may I ask, is the difference between the Airport Extreme and the Airport Express? And why is there a price difference between them. And would I be able to use it for surfing the web and print wirelessly on my Macbook? Which would be worth it for me, Because I'm sorta on a tight budget...

    Hi SMLaracy:
    The AE offers Wireless access and/or Airtunes and/or a USB printer port and WDS with a compatable WDS basestation.
    http://www.apple.com/airportexpress/
    The AEBS offers Wireless access with an additional LAN port (to connect a wired computer or switch), a USB printer port and a built-in modem.
    http://www.apple.com/airportextreme/
    I hope this helps!

Maybe you are looking for

  • How to re-install photoshop without a disc?

    I bought a new HP laptop 2 years ago with Photoshop elements pre-installed.  I had to re-install Windows and lost Photoshop.  How do I re-install Photoshop without a disc?

  • Is there any compoment can explain XML & HTML?

    I want to create an client end-point as an explorer like IE,which can send http request and receive XML(including XSL SVG and so on),HTML,JavaScript and expliant them and show them right on my client end-point explorer. I mean that I will use swing t

  • Web Site Design Element Question

    Hi, I want to include as a design element a puzzle. I want to present the puzzle unassembled and allow the visitor to move the pieces into place. What is the best way to do this in Dreamweaver CS5?

  • Query Performance with Exception aggregation

    Hello, My Query Keyfigures has exception aggregation on order line level as per requirement. Currently cube holds 5M of records, when we run query its running more than 30min. We cont remove exception aggregation. Cube is alredy modeled correctly and

  • IOS8&Bluetooth

    Once I updated to IOS8, I lost my bluetooth on my ipad air. Ipad can see other bluetooth devices but won't pair. I've tried all the fixes I can find but nothing works. Hopefully Apple has a fix in the works for the various bugs being identified with