/[Sack]/trunk/views/00.demo.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/views/00.demo.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations)
Tue Sep 22 22:28:40 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: text/plain
File size: 626 byte(s)
use md5 digest to solve first memory problem with C1, but not with CR yet
1
2 #$out->{ 'fields +' }->{$_}++ foreach keys %$rec;
3
4 #$out->{ 'years +' }->{ $rec->{PY}->[0] }++;
5
6 #$out->{ 'DT +' }->{ $_ }++ foreach @{ $rec->{DT} };
7
8 #$out->{'SC +'}->{ $_ }++ foreach @{ $rec->{SC} };
9
10 # FIXME out of memory without md5
11 #$out->{'C1 +'}->{ md5($_) }++ foreach @{ $rec->{C1} };
12 $out->{'CR +'}->{ md5($_) }++ foreach @{ $rec->{CR} };
13
14 # XXX dump first record
15 #$out->{_debug_rec} ||= $rec;
16
17 #push @{ $out->{TI} }, $rec->{TI};
18
19 #push @{ $out->{_debug}->{id} }, $rec->{'000'};
20
21 $out->{'_debug'}->{records}++;
22 $out->{'_debug'}->{start_t} ||= time;
23 $out->{'_debug'}->{duration} = time - $out->{'_debug'}->{start_t};

  ViewVC Help
Powered by ViewVC 1.1.26