From 186531c5b49c9d6bf779dc4fa649b835b00a0934 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 May 2014 23:20:32 +0800 Subject: [PATCH] partially --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3279d38..e64d953 100644 --- a/README.md +++ b/README.md @@ -136,9 +136,8 @@ The above route will use `\d+` as its pattern. Optimization ----------------------- -Simple regular expressions are optimized, through a regexp pattern to opcode -compiler, which compiles the simple pattern into a small & fast finite state -machine. +Simple regular expressions are optimized through a regexp pattern to opcode +compiler, which translates simple patterns into small & fast scanners. By using this method, r3 reduces the matching overhead of pcre library. @@ -146,6 +145,7 @@ Optimized patterns are: `[a-z]+`, `[0-9]+`, `\d+`, `\w+`, `[^/]+` or `[^-]+` slugs without specified regular expression will be compiled with a `[^/]+` pattern. therefore, it's optimized too. +Complex regular expressions will still use libpcre to match URL (partially). Performance