James Mastros wrote: > I'm of the opinion that we should consider 3 to be Just Plain Silly and not > worth worring about overmuch. AFAICT, you're worrying about everything overmuch. It suffices, I believe, to put the following contract on the sort() function: If the user-supplied comparison function is not relative-idempotent, then the results of sort() are not guaranteed to be sorted. If the user-supplied key extraction function is tagged with :function/:pure (or whatever), then perl is free to optimize the operation of sort() by memoizing the results of calls to that function. -- John Porter
- RE: What can we optimize (was... David Whipp
- RE: What can we optimize (was... Dan Sugalski
- Re: What can we optimize (was... David L. Nicol
- pitching names for the attrib... David L. Nicol
- Re: pitching names for the at... Dan Sugalski
- Re: pitching names for the at... John Porter
- Re: What can we optimize (was... Juanma Barranquero
- Re: What can we optimize (was Re: Schw... Piers Cawley
- Re: What can we optimize (was Re:... Dan Sugalski
- Re: Schwartzian transforms James Mastros
- Re: Schwartzian transforms John Porter
- Re: Schwartzian transforms Russ Allbery
- Re: Schwartzian transforms John Porter
- Re: Schwartzian transforms Bart Lateur