in reply to Re^3: best way to inline code? (i.e. macro)
in thread best way to inline code? (i.e. macro)
Anyways, running DProf shows that the frequent DB_Connect calls are sucking extra CPU cycles, so I thought (if there was an easy way to try it) I'd just inline my DBI->connect subroutine. I know, you're saying "that's not the problem" or "that's a fishing expedition", etc. Very possible... and that's why I was hoping there was a very easy way to test inlining the sub.sub DB_connect { return DBI->connect( $Const::DB_Name, $Const::DB_User, $Const::DB_Pass, { PrintError => 1, RaiseError => 1, AutoCommit => 1 } ) || die "DATABASE CONNECTION ERROR: " . $DBI::errstr . "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: best way to inline code? (i.e. macro)
by samtregar (Abbot) on Oct 17, 2005 at 22:27 UTC | |
by ManFromNeptune (Scribe) on Oct 18, 2005 at 00:48 UTC | |
|
Re^5: best way to inline code? (i.e. macro)
by perrin (Chancellor) on Oct 17, 2005 at 22:26 UTC |