#6 List icons optimized

open
nobody
None
5
2007-11-23
2007-11-23
janekw
No

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:)

Discussion

  • janekw

    janekw - 2007-11-23
     
  • janekw

    janekw - 2007-11-24

    Logged In: YES
    user_id=1816284
    Originator: YES

    Measures are for the emulator, the problem was much worse on the device.

     
  • otsov

    otsov - 2007-11-26

    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

     
  • janekw

    janekw - 2007-11-26

    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.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks