Algorithm-Diff-XS
view release on metacpan or search on metacpan
SV *obj
AV *a
IV a_min
IV a_max
HV *h
PREINIT:
struct CTX *ctx = (struct CTX *)SvIVX(SvRV(obj));
IV i, j;
PPCODE:
ctx->links.max = ctx->thresh.max = -1;
ctx->current = *ctx->avail.arr;
for (i = a_min; i <= a_max; ++i) {
SV *line = *av_fetch(a, i, 0);
STRLEN klen;
char *key = SvPVbyte(line, klen);
SV **lines = hv_fetch(h, key, klen, 0);
if (lines != NULL) {
( run in 1.937 second using v1.01-cache-2.11-cpan-71847e10f99 )