On Thu, 17 Aug 2000, Barrie Slaymaker wrote:
> Mikael Claesson wrote:
> >
> > with mod_perl it looks even better.
>
> Cool. Welcome.
>
> > I plan to keep all lowerlevel database stuff in C, and
> > embed it in a perl module. Will this make things run
> > slower than if I made it all in perl?
>
> Usually faster, but whether that's significant in your application
> (ie will the users notice) is hard to say. It's primarily
> about productivity & maintainance vs. performance tradeoff.
>
> XS code is a good way to preserve your existing code, I suspect.
XS or SWIG, you can find an introduction to both in the Advanced Perl
Programming book.
For a wonderfull series of XS articles see:
http://www.perlmonth.com/columns/modules/modules.html?issue=6
http://www.perlmonth.com/columns/modules/modules.html?issue=7
http://www.perlmonth.com/columns/modules/modules.html?issue=8
http://www.perlmonth.com/columns/modules/modules.html?issue=9
http://www.perlmonth.com/columns/modules/modules.html?issue=10
And of course: perldoc perl, which gives:
perlembed Perl ways to embed perl in your C or C++ application
perlapio Perl internal IO abstraction interface
perlxs Perl XS application programming interface
perlxstut Perl XS tutorial
perlguts Perl internal functions for those doing extensions
perlcall Perl calling conventions from C
[snipped the rest of nice comments]
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com perl.org apache.org