Name : perl-Text-VCardFast
| |
Version : 0.11
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 18:56:26
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-VCardFast-0.11-lp155.1.1.src.rpm
|
Size : 0.05 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl extension for very fast parsing of VCards
|
Description :
Text::VCardFast is designed to parse VCards very quickly compared to pure-perl solutions. It has a perl and an XS version of the same API, accessible as vcard2hash_pp and vcard2hash_c, with the XS version being preferred.
Why would you care? We were writing the calendaring code for fastmail.fm, and it was taking over 6 seconds to draw respond to a request for calendar data, and the bulk was going to the perl middleware layer - and THAT profiled down to the vcard parser.
Two of us independently wrote better pure perl implementations, leading to about a 5 times speedup in each case. I figured it was worth checking if XS would be much better. Here\'s the benchmark on the v4 example from Wikipedia:
Benchmark: timing 10000 iterations of fastxs, pureperl, vcardasdata... fastxs: 0 wallclock secs ( 0.16 usr + 0.01 sys = 0.17 CPU) AATT 58823.53/s (n=10000) (warning: too few iterations for a reliable count) pureperl: 1 wallclock secs ( 1.04 usr + 0.00 sys = 1.04 CPU) AATT 9615.38/s (n=10000) vcardasdata: 8 wallclock secs ( 7.35 usr + 0.00 sys = 7.35 CPU) AATT 1360.54/s (n=10000)
(see bench.pl in the source tarball for the code)
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/x86_64 |