Python & Music: Performance question

Boudewijn Rempt boud at valdyas.org
Sun Apr 6 16:14:54 EDT 2003


Max M wrote:

> It is premature optimisation. First you should just get it to work, and
> then you should optimize if there are any problems.
> 

Based on his examples, yes -- but if the possibility of using simple tuples
is taken into account, it becomes a design decision that should be made
fairly early. Once you've got a whole system that depends on notes to be
objects with lots of behaviour, it's not easy to go back. Conversely, once
you've got a system that's spread note behaviour all over the place like
nutella you've got a sticky mess that's not easy to clean up.

> No matter how many notes you have, it will make no problems for you on a
> reasonably moderne computer.

There's that too. I'd go for reasonably intelligent notes, myself.

-- 
Boudewijn Rempt | http://www.valdyas.org




More information about the Python-list mailing list