develooper Front page | perl.perl5.porters | Postings from December 2011

Feasibility of having an SvPV point to a compiled C string

Thread Next
From:
Karl Williamson
Date:
December 3, 2011 09:33
Subject:
Feasibility of having an SvPV point to a compiled C string
Message ID:
4EDA5D7B.6030402@khwilliamson.com
I don't know anything about this area of the Perl core.  How feasible 
would it be to have an API that creates an SVpv with its initial 
(possibly only) value pointing to a constant C string, without copying 
the string?

The issue comes up in converting regexes to use inversion lists for 
Unicode and POSIX properties.  The commonest of these could be compiled 
into a hdr file, but some of them are thousands of bytes long.  It seems 
silly to have these read-only arrays copied elsewhere.

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