in reply to Re^2: Centos 5 specific DBI memory leak
in thread Centos 5 specific DBI memory leak

Making $sth static is intentional.

It allows to prepare() the statement only once, even if using it afterwards billions of times.

Defining it in the sub would imply a heavy performance penalty, even if it would circumvent the problem faced now - but thank you anyway.

  • Comment on Re^3: Centos 5 specific DBI memory leak