I know this is not specifically PyGTK, but it's used in a PyGTK program so...

I was wondering what the fastest way of caching data was in Python?

It's for my MIDI-sequencer project.

I have been using a combination of lists and dictinarys for caching notes
on tracks like this

cache = [[[{}]]]

so I can find stuff by getting:
(tick is position in midi-ticks, note is, well, note, like E5, just in
numbers)

cache[track][note][(tick/250)*250][tick]

I hope you can follow me and would be most gratefull for a reply.

Cheers

...Christian


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to