On Tue, 7 May 2002, Gabriel Ricard wrote: > Rasmus Lerdorf wrote: > > Well, the absolute fastest way to get something similar to this is to > > write a PHP extension in C that performs your time-sensitive operations. > > It really is much easier than most people think to extend PHP in this > > fashion. If you are a moderately experienced C programmer, you can take a > > function you have written in PHP and turn it into C without too much > > hassle. > > > > -Rasmus > > > > Well, yes, that is something I plan on doing, but not everyone is > capable of doing that, which is why I asked. > > Do you think it's possible?
Yes, it's quite possible. SRM (www.vl-srm.net) has the concept of a 'function library' (http://www.vl-srm.net/doc/features.remote-functions.php) which is loaded when the deamon is started. But there is one big problem with this approach which makes it not much faster: you need some sort of synchronisation between the thread that runs the function library and the rest of your code. regards, Derick --------------------------------------------------------------------------- Did I help you? http://www.jdimedia.nl/derick/link.php?url=giftlist Frequent ranting: http://www.jdimedia.nl/derick/ --------------------------------------------------------------------------- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net --------------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php