Boost logo

Boost Users :

Subject: Re: [Boost-users] performance tuning on boost version 1_64_0
From: Connie Zhang (czhangs716_at_[hidden])
Date: 2017-07-03 15:05:14


Hi, Glen,
I can only run  /MD under configuration setting on Release. However, the program is slower than /MDd when keeping the other setting the same. 
Is that the only way to turn off debug completely? I though /Od is to turn off the debug mode. Is that correct?
Hi, Paul,
This is the legency code developed in old version of boost and VC. We can access the original built executable(.exe) and source code of C++/CLI, but not old version of boost libriary.
I also thought the new version is better than the old one. The libraries used in the code is shared_ptr.
The program consists of three projects and one setup project. Those three projects have some kind of dependecy. It is expected to generate soluation in exe format and able to run independently on other platform. So it mostly developed by C++/CLI. 

So the only thing we changed here is new version of boost and VC2013. The original one was built on VC2010.
Hope this information can helps.
Connie
  

Sent from Yahoo Mail. Get the app

On Monday, July 3, 2017, 9:19:37 AM EDT, Paul A. Bristow via Boost-users <boost-users_at_[hidden]> wrote:

 

 Â 

From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Connie Zhang via Boost-users
Sent: 02 July 2017 20:34
To: boost-users_at_[hidden]
Cc: Connie Zhang
Subject: [Boost-users] performance tuning on boost version 1_64_0

 Â 

Hello,

 Â 

I recently upgrade boost version of a visual C++ program from an old version of 1_58_0 to 1_64_0.  Compared to the original executable, the newly upgraded one runs very slow (more than 6 times longer) even I disable the debug mode and set the optimization to /ox in visual environment.

 Â 

The other difference between the old and the upgrade ones is the visual studio version. The old one is on 2010 and the new one 2013.

 Â 

Anyone has any idea for why it behaves like this? Which kind of performance tuning I need to look into?

 Â 

 Â 

Thank you so much for your help!
 Â 

Well, it isn’t much help, but you will need to provide many more clues before anyone can help.

 Â 

It isn’t Boost wide or someone else would have noticed.

 Â 

In general, new compilers are producing better code,  so there is no reason to suspect VS compilers generally.

 Â 

(You don’t seem to be using the most recent VS version and update?  Is there a reason?) 

 Â 

Which Boost libraries are being used?

 Â 

Is it using only headers, or does it use pre-built (or built by you) libraries?

 Â 

Are you completely sure that it isn’t a debug build?  (Even if you think that you told it to optimize?)

 Â 

HTH

 Â 

Paul

 Â 

 Â 

---
Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830
  
  
  
  
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
https://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net