Loose memory with adodb
Posted: Fri Dec 09, 2005 5:06 pm
Make this test - script test.php in the root:
The results:
First memory usage (open database with adodb) 1357712 bytes.
Second memory usage (open database with mysql direct) 1358736.
The connection with mysql - direct needs only 1024 bytes !!
Here you can loose memory without an end and you can loose speed.
And this you need of memory with a fresh installed 0.11.1
7333896 bytes of memory
Code: Select all
<?php
include("config.php");
include_once($config['root_path']."/lib/adodb/adodb.inc.php");
$db = &ADONewConnection($config['dbms'], 'cms:pear');
$db->Connect($config["db_hostname"],$config["db_username"],$config["db_password"],$config["db_name"]);
echo memory_get_usage().'<br />';
$d=mysql_connect($config["db_hostname"],$config["db_username"],$config["db_password"],$config["db_name"]);
echo memory_get_usage().'<br />';
?>
First memory usage (open database with adodb) 1357712 bytes.
Second memory usage (open database with mysql direct) 1358736.
The connection with mysql - direct needs only 1024 bytes !!
Here you can loose memory without an end and you can loose speed.
And this you need of memory with a fresh installed 0.11.1
7333896 bytes of memory