Dirk wrote:
Toby Johnson schrieb:
Do we still need the Benchmark code in the vss2svn.pl script? I
thought we only needed it when trying to optimize the SQL queries.
I'd rather remove it if it's not needed any longer; if we do still
need it then I can have it load only if --debug is called.
I use it as a kind of progress monitor, since it takes a while until
the conversion is complete. But you could also remove it. I thought it
was attached to the --timing switch?
I think it's only printing benchmarks if that switch is on, but the
module dependency is still there because of the "use Benchmark". In
Perl, a "use" is considered "compile time", but you can also run a "use"
at runtime with something like:
if ($gCfg{timing}) {
eval "use Benchmark";
}
Of course a "use" statement is really just equivalent to "package" then
"require":
if($gCfg{timing}) {
package Benchmark;
require "Benchmark.pm";
}
I'm going to start creating pre-built .exe's soon starting with beta-1
so I was just trying to cut down on the included modules. I'll leave the
timing code in there but only pull in the module if it's requested.
_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org