Skip Menu |

This queue is for tickets about the AnyEvent-Worker CPAN distribution.

Report information
The Basics
Id: 68242
Status: new
Priority: 0/
Queue: AnyEvent-Worker

People
Owner: Nobody in particular
Requestors: ERANTAPAA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.04
Fixed in: (no value)



Subject: consider using the offset parameter for syswrite
In the serve_fh routine, consider using the offset parameter to syswrite instead of substr to avoid copying $wbuf: for (my $ofs = 0; $ofs < length $wbuf; ) { # $ofs += (my $wr = syswrite $fh, substr $wbuf, $ofs or die "unable to write results"); $ofs += (my $wr = syswrite $fh, $wbuf, length($wbuf), $ofs or die "..."); }