[Koha-devel] Search Engine Changes : let's get some solr
Galen Charlton
gmcharlt at gmail.com
Mon Nov 15 05:52:13 CET 2010
Hi
2010/11/14 Galen Charlton <gmcharlt at gmail.com>:
> [1] http://git.librarypolice.com/?p=marcpm.git;a=shortlog;h=refs/heads/use-dom-instead-of-sax
> [2] http://librarypolice.com/nytprof/run-libxml-dom-2/index.html
> [3] http://librarypolice.com/nytprof/run-sax-libxml-sax-parser/
> [4] http://librarypolice.com/nytprof/run-sax-expat/index.html
> [5] http://librarypolice.com/nytprof/run-sax-expatxs/index.html
> [6] http://git.librarypolice.com/?p=marcpm.git;a=shortlog;h=refs/heads/pure-perl
> [7] http://librarypolice.com/nytprof/run-pp/
By the way, the profiles are coming from runs of the following script
applied to a MARCXML file containing 5,000 records, with various
combinations of SAX parsers and the DOM and PP code for
MARC::File::XML.
#!/usr/bin/perl
use MARC::File::XML (BinaryEncoding => 'utf8');
use MARC::Record;
use MARC::Batch;
binmode STDOUT, ':utf8';
my $batch = MARC::Batch->new('XML', $ARGV[0]);
while (my $record = $batch->next) {
$i++;
print $record->as_usmarc();
if ($i % 1000 == 0) {
print STDERR "$i ", scalar(localtime), "\n";
}
last if $i == 5000;
}
Regards,
Galen
--
Galen Charlton
gmcharlt at gmail.com
More information about the Koha-devel
mailing list