Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 96 10:05:21 MST
From:      bartlett@Exabyte.COM (Peter Bartlett)
To:        chat@FreeBSD.ORG
Subject:   Re: Who needs Perl? (Was: cvs commit: src/share/doc/handbook ...)
Message-ID:  <9611181705.AA04748@fern.Exabyte.COM>

next in thread | raw e-mail | index | archive | help
> Ollivier Robert writes:
>
> ...
> 
> Sure.  And C will be faster than perl.
> 
> ...
>

In my experience this is not necessarily the case.  I have in the past
compared performance of programs written separately in Perl and C. 
These were written to perform a complex engineering task involving lots of
text manipulation, array operations, integer math, etc.  The Perl program
(several thousand lines) won hands down.

The reason?  Perl's "associative array" data type.  Very rarely do C
programmers take the time to implement hash tables for the various data
types they wish to do searches on.  Usually the result is long searches
of linked lists, perhaps sorted lists for some performance improvement.

With Perl the hash tables are built in, resulting in far better search
times.

However, I disagree with the inclusion of Perl in the FreeBSD distribution,
in my opinion it should be considered "application software" and distributed
separately.

---
Peter J. Bartlett                E-Mail:  bartlett@exabyte.com
Exabyte Corporation              Voice:  (303) 417-5703
1685 38th Street                 Fax:  (303) 417-7180
Boulder, CO 80301




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9611181705.AA04748>