Python & Music: Performance question
maxm at mxm.dk
Sun Apr 6 16:43:44 CEST 2003
David Asorey Álvarez wrote:
> Hello, group.
> I'm developing a small music program, and I have some doubts.
> I want define a class, Note, which represents a note. It has two
> attributes, pitch and duration (quarter note, half note, etc). There
> will be a lot of instances of this object, maybe hundreds of notes,
> and the program needs access to all of this objects and read its
> Which implementation will be more efficient?
It is premature optimisation. First you should just get it to work, and
then you should optimize if there are any problems.
No matter how many notes you have, it will make no problems for you on a
reasonably moderne computer.
hilsen/regards Max M Rasmussen, Denmark
Fremtiden, videnskab, skeptiscisme og transhumanisme
More information about the Python-list