GNOME Bugzilla – Bug 345795
Let python use per-entry data
Last modified: 2007-02-06 10:54:12 UTC
Entry types have a field for setting the amount of extra data space that is allocated to entries, so extra data can be stored. This isn't accessable from python.
Created attachment 67925 [details] [review] patch For entry types registered by python code, this adds some extra space for a pointer, and then adds a dictionary to each entry accessable via "entry.data" in Python. It works well, however suffered the downside of creating a dictionary for each entry that data is added to. If for example the magnatune plugin added some data to each of it's (say) 5000 entried, that would be around half a meg of overhead (if the value of 100 bytes I've heard is correct).
If we implemented bug 330259, it could hook into that instead - which would fix the memory use and allow data sharing with the rest of the code.
Using a map from entry->data o the python side is actually more memory efficient, so doing that it better anyway. So there isn't really any point doing this.