ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
Re: [C++-sig] Compile times using Boost::python.
by Ralf W. Grosse-Kunstleve other posts by this author
Jun 4 2003 9:48PM messages near this date
[C++-sig] Re: Compile times using Boost::python. | Re: [C++-sig] Compile times using Boost::python.
--- Kerim Borchaev <warkid@[...].ru>  wrote:
>     System P4-1800, 512Mb.
>     Project consists of 12 files(~12 classes, 100-200 methods).
>     Compiling it with MSVC7 takes 2 minutes.
> 
>     Isn't in too long?

I also wish compilation would go faster, but if you look at a preprocessed file
you will not be surprised anymore.

>  What are your numbers?

Similar.

>     How can I speed it up?

The way I view it:

1. Boost.Python is highly efficient in minimizing the work for the programmer
(expensive in terms of money) by using the available computing resources (cheap
in comparison).

2. Once you have your (run)time-consuming core algorithms implemented in C++
and wrapped with Boost.Python you can spend most of your time working with the
much more pleasant Python language. I am sometimes going for weeks without
recompiling.

If I have to recompile I am using SCons which supports parallel builds (the -j
option). Amazingly, our latest dual-CPU PC (for <$3k) allows me to use -j 4 and
is indeed about 3.8 times faster than compiling with one CPU. I hear this is
due to hyper-threading.

Ralf


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Kerim Borchaev
David Abrahams
Ralf W. Grosse-Kunstleve
gideon may
Ralf W. Grosse-Kunstleve
Nicholas K. Sauter
Prabhu Ramachandran
gideon may
Philippe Fremy
Ralf W. Grosse-Kunstleve
gideon may
David Abrahams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved