Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Thursday September 06, 2001
06:12 AM

XS vs Backticks

[ #767 ]

I've recently converted some code here to XS (from just ordinary C programs called via backticks).

It's no faster than the backticks version, and I can't for the life of me figure out why. Conventional wisdom tells me the fork/exec cycle of a backtick should be significantly slower. I mean I know fork on Linux (2.4.6, fwiw) is supposed to be fast, but...

Anyhow, I've posted this to clp.moderated, so if you have any thoughts on this, answer there (once it passes moderation).