Dan Sugalski <[EMAIL PROTECTED]> writes:

> More often vice versa. INN embeds perl, for example, and uses it for
> spam detection. When it builds scalars for perl to use, it uses the copy
> of the article already in memory to avoid copies. (Given the volume of
> news and the size of some news articles this can save a lot) You
> wouldn't want perl messing with it in that case, since the string memory
> really isn't perl's to manage.

INN marks such "windowed" scalars as read-only, which I think only makes
sense for that situation.  I guess I could think of cases where you might
want to do in-place modifications without changing the allocation, but
that sounds a lot iffier.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to