RE: RE: RE: [ROOT] execution speed of compiled programs using ROOT

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Aug 14 2003 - 17:31:18 MEST


Hi Thomas,

With the current version of the ROOT/gdk implementation, you can __remove__
the slow down
by just adding the lines
	#include <TApplication.h>

	.....

	TApplication theApp("App",&argc,argv); // or some arguments

to your main program.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Thomas Nisius
Sent: Thursday, August 14, 2003 5:02 AM
To: fine@bnl.gov
Cc: roottalk@pcroot.cern.ch
Subject: Re: RE: RE: [ROOT] execution speed of compiled programs using
ROOT


Hi,

Sorry if I missed the point; here is a short description of what I want to
do
I have a program for medical image reconstruction that needs to write lots
of histograms and profiles to disk for further analysis. Currently this
program uses PAW. Since the data analysis with PAW is not a trivial task for
people at clinical sites, we want to change the program to use root and
provide an analysis tool. Within this program (the image reconstruction) I
observed a significant slowdown of all routines even those, that are not
related to root.
The example I provided, just showed, that even such simple pieces of code
are influenced by root.

Now to my question:
how can cope with the slowdown that occurs whenever I link against the root
libs?

Thanks in advance
Thomas Nisius


>Hello Thomas,
> Could you elaborate what was the in initial cause of your investigation?
> For example for sure ROOT needs some time to be initialized since it loads
dozen the share >libraries (DLL’s).
> To get the right answer one should ask the right question. What question
you want to be >answered.
>I am really reluctant to go deeper at this point. The program you prepared
(with “constant” >only loop) is no use to do any solid conclusion.
>On other hand I am not keen to start the discussion how such kind of the
code should look like >with no solid reason.

__________________________________________________________________________
Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter,
Adressverifizierung, digitale Unterschrift: http://freemail.web.de




#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET