Kara-Moon Forum
March 28, 2024, 07:46:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: MMA 15.01e  (Read 3928 times)
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« on: July 15, 2015, 05:58:54 PM »

A couple of minor fixes:

   - since adding the subroutine function, things didn't work with python3. Sorry.

   - added a lyric On or Off option. Handy for multiple verse stuff.

As always, get it at: http://mellowood.ca/mma/downloads.html#developer

By the way, I just tested generating about 1000 files using python2 and 3. 2 still wins the speed race ... it is about  30% faster Smiley
Logged

My online life: http://www.mellowood.ca
folderol
Kara-Moon Master
****
Posts: 5296

Who? Me?


WWW
« Reply #1 on: July 15, 2015, 09:47:17 PM »

A couple of minor fixes:

   - since adding the subroutine function, things didn't work with python3. Sorry.

   - added a lyric On or Off option. Handy for multiple verse stuff.

As always, get it at: http://mellowood.ca/mma/downloads.html#developer

By the way, I just tested generating about 1000 files using python2 and 3. 2 still wins the speed race ... it is about  30% faster Smiley

That rather surprises me. I wonder what the cause is.
Logged

If you have a poem, I have a tune, and we exchange these, we can both have a poem, a tune, and a song.
- Will
bvdp
Kara-Moon Master
****
Posts: 1436


WWW
« Reply #2 on: July 15, 2015, 11:34:47 PM »

I think it's a well known "fact" that 3 is slower. Probably a bunch is due to proper unicode handling?

Honestly, for MMA, it really doesn't matter. I compile 1100 songs in 2 minutes (just under 3 minutes in py3). So, that's about 0.1sec  (one tenth of one second!) per song. And, I'm pretty sure that most of the time is spent in starting up python, not running the actual code. Of course, this will vary a lot depending on your processor (I'm running an Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz which was pretty much top of the line a few years ago.

But, really, I have no idea. I just know of the purposes of MMA python is plenty fast Smiley
Logged

My online life: http://www.mellowood.ca
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 19 queries.