Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 595944 Details for
Bug 837296
inverted index: reduce size of postings file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
simple parser of inverted index postings file
postings.pl (text/plain), 587 bytes, created by
Paul Bolle
on 2012-07-03 11:54:58 UTC
(
hide
)
Description:
simple parser of inverted index postings file
Filename:
MIME Type:
Creator:
Paul Bolle
Created:
2012-07-03 11:54:58 UTC
Size:
587 bytes
patch
obsolete
>use 5.014; >use warnings; >use autodie; > >exit main ( @ARGV ); > >sub parse_postings { > my ($postings) = @_; > > until (eof( $postings )) { > read( $postings, my $rec, 24 ); > my $line = unpack( "Q<", substr( $rec, 0, 8 )); > my $func = unpack( "Q<", substr( $rec, 8, 8 )); > my $path = unpack( "L<", substr( $rec, 16, 4 )) & 0xffffff; > # $mark should be at least ' ' (0x20) > my $mark = unpack( "C" , substr( $rec, 19, 1 )); > say "$line:$func:$path:$mark"; > } >} > >sub main { > my ($path) = @_; > > open( my $postings, '<', $path ); > parse_postings( $postings ); > close( $postings ); > > 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 837296
: 595944