Re: Need help speeding up an algorithm...

2003-11-02 Thread Jeff 'japhy' Pinyan
I have a possible re-write for your program. It gets rid of the system calls (the 'find' and the 'rm'). I've used references; the %by_genre hash has the different genres as keys, and its values are array references. The array references hold hash references. If you can't follow the code, ask the

Re: Need help speeding up an algorithm...

2003-11-02 Thread Andrew Gaffney
Paul Johnson wrote: On Sun, Nov 02, 2003 at 05:46:22PM -0500, Dan Anderson wrote: I created a pretty simple Perl script to create .m3u files for all genres in my music library. (I eventually want to expand the script to be able to create music match like playlists on the fly). The problem I'm run

Re: Need help speeding up an algorithm...

2003-11-02 Thread Paul Johnson
On Sun, Nov 02, 2003 at 05:46:22PM -0500, Dan Anderson wrote: > I created a pretty simple Perl script to create .m3u files for all > genres in my music library. (I eventually want to expand the script to > be able to create music match like playlists on the fly). > > The problem I'm running into

Need help speeding up an algorithm...

2003-11-02 Thread Dan Anderson
I created a pretty simple Perl script to create .m3u files for all genres in my music library. (I eventually want to expand the script to be able to create music match like playlists on the fly). The problem I'm running into is that for only 150 songs the following code takes over 5 seconds to ex