[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2000-12-11 (17:41) |
From: | eijiro_sumii@a... |
Subject: | Re: substring match like "strstr" |
> I did not expect that OCamlB performs so well; so I suggested OcamlA and > regexp (which are both fast for the bytecode interpreter, too). I think it > depends also on the problem size (especially on the length of the substring). Right, I forgot to mention those -- in the benchmark, the "needles" (matched substrings) were 3 characters long and the "haystacks" (searched strings) were about 20 characters long; I used the native code compiler. For much larger input, regexp could possibly do better. Anyway, thank you for the helpful suggestions. // Eijiro Sumii (http://www.yl.is.s.u-tokyo.ac.jp/~sumii/) // // Ph.D. Student at Department of IS, University of Tokyo // Visiting Scholar at Department of CIS, University of Pennsylvania