I noticed that Listbox loads an icon for each list element. This is not particulary scalable:) Usually we don't need to provide a distinct icon for a list item. So I think it makes sense for the icon object to be responsible for its own loading.
This new implementation of icons' behaviour is order of magnitude faster than the original one. For example a 1000 items list with 7 different types of icons loads in 30ms compared to 2s in the case of original implementation.
This diff is relative to 1.4.0 version. It was generated by examdiff application (I hope it's unix friendly:)
Logged In: YES
user_id=1816284
Originator: YES
Measures are for the emulator, the problem was much worse on the device.
Logged In: YES
user_id=1371303
Originator: NO
Could you add suitable license information for this patch? What we are specifically looking for - should you be interested to contribute this to the mainstream version - would be the following statement:
"""
The attached patch may be licensed under the Apache 2
license to remain compatible with the rest of the PyS60
codebase.
"""
Please see the example at http://sourceforge.net/tracker/index.php?func=detail&aid=1572142&group_id=154155&atid=790648
Logged In: YES
user_id=1816284
Originator: YES
The attached patch may be licensed under the Apache 2
license to remain compatible with the rest of the PyS60
codebase.