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

Owner: Nobody in particular
Requestors: ERANTAPAA [...]

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

Subject: consider using the offset parameter for syswrite
Download (untitled) / with headers
text/plain 330b
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 "..."); }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to