initial commit
[urisagit/Sort-Maker.git] / paper / abstract
CommitLineData
7468c584 1A Fresh Look at Efficient Perl Sorting
2
3Uri Guttman, John Porter, and Larry Rosler
4
5Abstract
6
7Sorting is one of the primary needs of programming, because most
8programs produce reports of sorted data. Efficient sorting therefore
9receives a great deal of attention in the Perl documentation, FAQ,
10FMTYEWTK, books, and newsgroups. In this paper, we review and compare
11several methods for Perl sorting: external ('system'),
12repeatedly-computed-keys ('naive'), cached-keys ('Orcish Maneuver'), and
13mapped-keys ('Schwartz Transform'). We then present a little-known
14approach ('single-string key-and-value'), which relies for efficiency on
15the default sort algorithm. This method typically provides much better
16performance than the other approaches, and is easy to implement directly
17or using a module.
18
19
20