I have read about writing perl subroutines in c and plan to try it out.
One question i need to ask is, by writing the subroutines in c does that mean my sub routines will run with c like efficiency?
I have read about writing perl subroutines in c and plan to try it out.
One question i need to ask is, by writing the subroutines in c does that mean my sub routines will run with c like efficiency?
try it out...make a routine that does:
get current time
do large amount of math
get current time
print difference in time
then run it in C and run it in Perl
For those who would like to know: I have done some tests and it turns out that on first time run c code takes longer than perl. On the Second time it runs faster.
Bookmarks