-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sep 10, 2007, at 16:15:35, Adam Maccabee Trachtenberg wrote:

On Mon, 10 Sep 2007, BuildSmart wrote:

Perhaps the best approach would be to mimic the ext/mysql functions
and feed them to ext/mysqli function rather than aliasing them
directly but maybe a performance trade-off might be encountered as a
result.

Based on my experiences, if you're keeping to the procedural
interface, aren't doing crazy things with default links, and not
adding in anything new, the API changes are relatively small and
self-contained.

So, I would suggest people take the minimal amount of time to migrate
through using search and replace and minor syntax updates. It solves
the speed issue and sets you up to take advantage of MySQLi-only
features.

However, if you feel the need to do this for various reasons, I would
start here:

http://old.coggeshall.org/show_source.php?filename=mysql2mysqli.php

Well, cursory testing proved successful and the general concept is good so I moved to the next phase and made an extension based on the script code but the added execution time defeated the purpose since no time savings was achieved, actually it ended up being a little slower so the only advantage was that the ext/mysqli extension could be used without script modification.

The only way to keep the time savings would be to modify the ext/ mysqli extension which is essentially just combining ext/mysql and ext/mysqli extensions which in itself wont provide any significant benefits other than making the code harder to maintain.

TIme to give up and move on.


-adam

- -- Dale


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFG5pJE0hzWbkf0eKgRAntNAKDGJ3oX8LRpk0XP8vrq6DNRpbhcDgCfWymU
zbQ03KKHZ7htIdSxBqYH4C8=
=m6+i
-----END PGP SIGNATURE-----

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to