couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Smith <...@couch.io>
Subject Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)
Date Thu, 19 Aug 2010 16:30:54 GMT
On Thu, Aug 19, 2010 at 23:14, Benoit Chesneau <bchesneau@gmail.com> wrote:

> On Thu, Aug 19, 2010 at 5:56 PM, Noah Slater <nslater@apache.org> wrote:
> >
> > On 19 Aug 2010, at 16:49, Benoit Chesneau wrote:
> >
> >> Well asking without giving yourself some data make it irrelevant but
> >
> > Not really.
> >
> > I'm suggesting that if we're going to use performance as an argument, we
> use data and not supposition.
>
> The way pattern matching works should explain by itself though ;)
>

AFAIK Erlang ships with Perl-compatible regular expressions written in C.

re:compile()

Anyway the whole performance argument is not relevant. Who cares? You are
about to do a b-tree lookup from the hard disk. How much will regex vs.
pattern match on a 20-byte string matter?

My point was, why are we inventing syntax out of our asses for every
different situation? Regular expressions should be considered because:

 1. They match patterns
 2. They capture groups and can access them later
 3. Everybody knows them

-- 
Jason Smith
Couchio Hosting

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message