develooper Front page | perl.perl5.porters | Postings from November 1999

Re: Patch for Threading and Regexps

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
November 19, 1999 13:03
Subject:
Re: Patch for Threading and Regexps
Message ID:
199911192102.QAA22150@monk.mps.ohio-state.edu
Brian Mancuso writes:
> 
> Below is a patch that decouples the match variables from the
> op tree and places them in the thread structure.

This problem is not thread-specific.  I do not see how moving things
into the thread-local storage will help.

> -	    (s = rx->startp[paren]) != -1 &&
> -	    (t = rx->endp[paren]) != -1)
> +	    (s = get_match_node(rx)->startp[paren]) != -1 &&
> +	    (t = get_match_node(rx)->endp[paren]) != -1)

Nope.  You do not want to make function calls in this tight code.

Did not look any further.

Ilya

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About