Article View: news.software.nntp
Article #79243Re: Cleanfeed Binary Checks
From: Julien ÉLIE
Date: Fri, 01 Aug 2008 06:22
Date: Fri, 01 Aug 2008 06:22
41 lines
3095 bytes
3095 bytes
Hi Russ,
> Well, one obvious thing that could be done is to replace the current code
> for initializing the __BODY__ key with the standard, normal way of making
> a copy of the article body and storing that in the Perl variable. It will
> be slower and take more memory, but it may work more reliably.
However, as such an initialization of __BODY__ works most of the time, I do not
understand why it is sometimes broken.
On particular conditions perhaps? Or a bug somewhere else.
> It's probably also worth investigating whether Perl has since acquired
> some function to make an SV of a read-only chunk of external memory of a
> known length and, if so, replace the innd code with something that calls
> that rather than cobbling up its own version.
Maybe this one? (Is the "string table" including the body?)
newSVpvn_share
Creates a new SV with its SvPVX_const pointing to a shared string in the string table.
If the string does not already exist in the table, it is created first.
Turns on READONLY and FAKE. If the hash parameter is non-zero, that value is used;
otherwise the hash is computed. The string's hash can be later be retrieved from
the SV with the SvSHARED_HASH() macro. The idea here is that as the string table
is used for shared hash keys these strings will have SvPVX_const == HeKEY and hash
lookup will avoid string compare.
SV* newSVpvn_share(const char* s, I32 len, U32 hash)
New in Perl 5.7.1.
--
Julien ÉLIE
« -- Heureusement, nous aurons bientôt le TGV !
-- C'est quoi le tégévé ?
-- C'est le Transport Gaulois Véloce » (Astérix)
Technical Details
Message-ID:
<g6ua3g$4pe$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mailReferences:
<g61rme$nqb$1@news.mixmin.net> <g62e1h$ejc$1@news.trigofacile.com> <g6qtgm$sq3$1@bongo.bofh.it> <slrng94sta.c76.mnalis-news@eagle102.home.lan> <8763ql5sli.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <g6ua3g$4pe$1@news.trigofacile.com> Subject: Re: Cleanfeed Binary Checks Date: Fri, 1 Aug 2008 08:22:39 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <g61rme$nqb$1@news.mixmin.net> <g62e1h$ejc$1@news.trigofacile.com> <g6qtgm$sq3$1@bongo.bofh.it> <slrng94sta.c76.mnalis-news@eagle102.home.lan> <8763ql5sli.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 41 NNTP-Posting-Host: aaubervilliers-151-1-57-111.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1217571760 4910 83.112.30.111 (1 Aug 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Fri, 1 Aug 2008 06:22:40 +0000 (UTC) In-Reply-To: <8763ql5sli.fsf@windlord.stanford.edu> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000