[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pcase.el

From: Stefan Monnier
Subject: Re: pcase.el
Date: Tue, 28 Sep 2010 00:51:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

SM> The future has passed.  It's called `pcase'.
> There's also an erlang-style matcher for elisp here:
> http://code.google.com/p/distel/.

Not to belittle that code, but its internal working is very different:
it does not preprocess that `case' into an efficient decision tree, but
instead naively tries each pattern in turn, in many cases performing the
same tests over and over again (even interpreting patterns at run-time
rather than precompiling them).  So pcase should show *much*
higher performance (100% untested claim).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]