Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id:
13410
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
at [...] altlinux.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
1.68
Fixed in:
(no value)



Subject: support for XSLoader
Please add support for XSLoader. XSLoader is noticeably faster than DynaLoader. With DynaLoader: perl -MTime::HiRes -e1 0,15s user 0,00s system 96% cpu 0,156 total perl -MTime::HiRes -e1 0,14s user 0,01s system 94% cpu 0,159 total perl -MTime::HiRes -e1 0,13s user 0,02s system 95% cpu 0,157 total With XSLoader: perl -MTime::HiRes -e1 0,10s user 0,01s system 98% cpu 0,112 total perl -MTime::HiRes -e1 0,09s user 0,01s system 90% cpu 0,111 total perl -MTime::HiRes -e1 0,09s user 0,01s system 90% cpu 0,111 total --- Time-HiRes-1.68/HiRes.pm- 2005-05-14 08:07:42 +0000 +++ Time-HiRes-1.68/HiRes.pm 2005-06-25 09:27:01 +0000 @@ -4,9 +4,7 @@ use strict; use vars qw($VERSION $XS_VERSION @ISA @EXPORT @EXPORT_OK $AUTOLOAD); require Exporter; -require DynaLoader; - -@ISA = qw(Exporter DynaLoader); +@ISA = qw(Exporter); @EXPORT = qw( ); @EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval @@ -32,7 +30,15 @@ sub AUTOLOAD { goto &$AUTOLOAD; } -bootstrap Time::HiRes; +eval { + require XSLoader; + XSLoader::load('Time::HiRes', $XS_VERSION); + 1; +} or do { + require DynaLoader; + local @ISA = qw(DynaLoader); + bootstrap Time::HiRes $XS_VERSION; +}; # Preloaded methods go here. End of patch -- Alexey Tourbin ALT Linux Team
Date: Sat, 25 Jun 2005 14:56:12 +0300
From: Jarkko Hietaniemi <jhietaniemi@gmail.com>
To: bug-Time-HiRes@rt.cpan.org
Subject: Re: [cpan #13410] support for XSLoader
RT-Send-Cc:
Guest via RT wrote:
Show quoted text
> This message about Time-HiRes was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=13410 > > > Please add support for XSLoader. XSLoader is noticeably faster than DynaLoader.
Please try Time::HiRes 1.69.
Date: Fri, 01 Jul 2005 09:24:55 +0300
From: Jarkko Hietaniemi <jhietaniemi@gmail.com>
To: bug-Time-HiRes@rt.cpan.org
CC: undisclosed-recipients:;
Subject: Re: [cpan #13410] support for XSLoader
RT-Send-Cc:
Guest via RT wrote:
Show quoted text
> This message about Time-HiRes was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=13410 > > > Please add support for XSLoader. XSLoader is noticeably faster than DynaLoader.
I am sorry but I am returning to DynaLoader. Switching to XSLoader lead to very strange errors (see cpan testers reports on Time::HiRes).


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.