Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Senior Member
    Join Date
    Jun 2006
    Location
    Colchester, UK
    Posts
    338
    Quote Originally Posted by Dan Sully
    Please note that the Perl issue only affects SlimServer before 6.5.
    I'm going to have to beg to differ on this. I've just done some comparison timings. I selected "All Songs" after "Albums" from the web page 3 times for each version of Perl. The latest Perl consistently takes 4 times as long as version 4! This is using the latest 6.5b release.


    Code:
    Perl 5.8.8-4
    ============
    2006-07-16 23:21:58.6197 Web Page Build > .5 : 4.80213212966919
    
    2006-07-16 23:22:25.5047 Web Page Build > .5 : 4.74195599555969
    
    2006-07-16 23:25:42.8866 Web Page Build > .5 : 4.69465899467468
    Code:
    Perl 5.8.8-5
    ============
    2006-07-16 23:28:16.4340 Web Page Build > .5 : 19.551097869873
    
    2006-07-16 23:29:17.3801 Web Page Build > .5 : 19.6564581394196
    
    2006-07-16 23:31:33.5804 Select Task > .5 : 19.6658449172974
    I'm getting pretty fast at swapping between them now, so let me know if there are any particular tests you'd like run.
    Last edited by SadGamerGeek; 2006-07-16 at 15:52.

  2. #12
    Perl Commando Dan Sully's Avatar
    Join Date
    Apr 2005
    Location
    Daly City, CA
    Posts
    2,865

    Big Perl performance problem in FC5

    * SadGamerGeek shaped the electrons to say...

    >> Please note that the Perl issue only affects SlimServer before 6.5.

    >
    >I'm going to have to beg to differ on this. I've just done some
    >comparison timings. I selected "All Songs" after "Albums" from the web
    >page 3 times for each version of Perl. The latest Perl consistently
    >takes 4 times as long as version 4! This is using the latest 6.5b
    >release.


    Yes, it's slower - but not due to that Perl bug.

    -D
    --
    dd if=/dev/sarcasm of=/dev/clue

  3. #13
    Senior Member
    Join Date
    Jun 2006
    Location
    Colchester, UK
    Posts
    338
    Quote Originally Posted by Dan Sully
    Yes, it's slower - but not due to that Perl bug.
    Fair enough.

    Does this mean there's likely to be another Perl 5.8.8-5 bug causing this?

  4. #14
    Perl Commando Dan Sully's Avatar
    Join Date
    Apr 2005
    Location
    Daly City, CA
    Posts
    2,865

    Big Perl performance problem in FC5

    * SadGamerGeek shaped the electrons to say...

    >Does this mean there's likely to be another Perl 5.8.8-5 bug causing this?


    No.. the code just hasn't been optimized yet.

    Though it's fast for me on a Macbook Pro

    -D
    --
    Ya gotta love UNIX, where else do you wonder whether
    you can kill a zombie spawned by a daemon's fork?

  5. #15
    Senior Member stinkingpig's Avatar
    Join Date
    May 2005
    Location
    Berkeley, CA
    Posts
    833

    Re: Big Perl performance problem in FC5

    ....

    > Though it's fast for me on a Macbook Pro



    .....
    <humor type=sarcastic style=strangelove>
    Always thought you were a red Commie, first the rotating signature, then an
    Apple product... what's next, an IDE with drag and drop?
    </humor>
    --
    "I spent all me tin with the ladies drinking gin,
    So across the Western ocean I must wander" -- traditional


  6. #16

  7. #17
    Senior Member
    Join Date
    Jun 2006
    Location
    Colchester, UK
    Posts
    338
    Quote Originally Posted by Dan Sully
    * SadGamerGeek shaped the electrons to say...

    >Does this mean there's likely to be another Perl 5.8.8-5 bug causing this?


    No.. the code just hasn't been optimized yet.
    I must have got the wrong end of the stick here, as I'm still a bit confused on this. Does the code have to be optimised for each Perl release then?

    Richard

  8. #18
    Perl Commando Dan Sully's Avatar
    Join Date
    Apr 2005
    Location
    Daly City, CA
    Posts
    2,865

    Big Perl performance problem in FC5

    * SadGamerGeek shaped the electrons to say...

    >I must have got the wrong end of the stick here, as I'm still a bit
    >confused on this. Does the code have to be optimised for each Perl
    >release then?


    No. There are some general performance issues with 6.5 in some circumstances.

    -D
    --
    <faisal> my life is collapsing to what will soon be NEGATIVE INTEGER degrees of separation.

  9. #19
    Senior Member
    Join Date
    Jun 2006
    Location
    Colchester, UK
    Posts
    338
    Quote Originally Posted by Dan Sully
    * SadGamerGeek shaped the electrons to say...

    >I must have got the wrong end of the stick here, as I'm still a bit
    >confused on this. Does the code have to be optimised for each Perl
    >release then?


    No. There are some general performance issues with 6.5 in some circumstances.
    OK, but doesn't this problem sound directly related to the version of Perl rather than SlimServer?

  10. #20
    Senior Member
    Join Date
    Apr 2005
    Posts
    8,410

    Resolved in latest 6.5

    I can confirm there was a significant performance problem with FC5 perl5.8.8-5 for 6.5.

    This should be resolved in the latest 6.5 versions - svn 8581 and the next nightly.

    It turns out that although the DBIx library does not rebless, the way it blesses its object seemed to trigger the slow code added to the latest perl. Slightly altering how DBIx blesses the ResultSet object avoids this.

    Thanks to Richard for letting me play with his machine for so long to find this!

    Adrian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •