Peter Prymmer wrote:
>
> On Wed, 20 Jun 2001, Nick Ing-Simmons wrote:
>
> > Nathan Torkington <[EMAIL PROTECTED]> writes:
> > >Brian Ingerson writes:
> > >> Most importantly is acceptance. I don't know how how many of you
> > >> have noticed, but there is nearly no cross-posting between the
> > >> Inline and XS mailing lists.
> > >
> > >Until we talked at YAPC, I had three misconceptions:
> > > * Inline was for trivial extensions
> > > * Inline mandated you put your C code in a heredoc in a Perl module
> > > * Inline had one model of compilation: your extension is compiled the
> > > first time it's used, and then cached.
> > >
> > >At YAPC I learned:
> > > * Inline exposes almost all the Perl API, so you can do pretty much
> > > any XS thing with Inline, only it's easier :-)
> > > * Most Inline modules are written with the C code in separate files
> > > where it belongs. The heredoc stuff I'd seen was an aberration.
> > > * Inline also has an h2xs-like mode, where you make and make install,
> > > and it's compiled and installed in much the same way as a regular
> > > XS module.
> > >
> > >I can't speak for others, but that's why I'd always figured Inline was
> > >no match for XS. Now I'm a convert.
> >
> > My understanding was things were "Inline" as well.
> > As compiling Tk takes several minutes on a 1GHz machine, and an hour+
> > on a slow one it did not seem to be worth looking at.
> > If it has a way to build .so/.dll file at install time I will take a look.
>
> Does anyone have a benchmark comparison of code speed of Inline vs XS?
>
> Peter Prymmer
I don't have a benchmark, but I converted two modules in a large real-world
perl/Tk application from using XS to using Inline. I have noticed little or
no speed difference. In fact, it "feels like" the Inline code may actually
start up a little faster.
Notice that this last statement is very subjective. The only thing that I
can say for sure is that I haven't noticed a speed degradation with Inline.
Brett Denner
--
Brett W. Denner Lockheed Martin Aeronautics Co.
email: [EMAIL PROTECTED] PO Box 748, MZ 9332
phone: 817-935-1144 Fort Worth, TX 76101
fax: 817-935-1212