Ivan B. Serezhkin > POE-Filter-Regexp-1.0 > POE::Filter::Regexp

Download:
POE-Filter-Regexp-1.0.tgz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0   Source  

NAME ^

    POE::Filter::Regexp - Fast spliting input stream

SYNOPSYS ^

use POE::Filter::ErrorProof; my $wheel = POE::Wheel::ReadWrite->new( Driver => POE::Driver::SysRW->new( BlockSize =>16777216), #16M OMG ! Filter => POE::Filter::Regexp->new(qr/^HEAD:/), #each new chunk begins from /\nHEAD:/ );

DESCRIPTION ^

This POE::Filter developed for reading large ammount of data from large files. On each iteration POE reads BlockSize octets from stream and put it to filter, filter returns array of sliced chunks in one bundle, and InputEvent called for each of it without runing POE's internal loop doing anything else. This construction blocks io but incredible fast on log processing, when main task of system - is parsing logs.

AUTHOR ^

Vany Serezhkin <ivan@serezhkin.com>

syntax highlighting: