Changes between Initial Version and Version 1 of Ticket #14513, comment 6


Ignore:
Timestamp:
Oct 3, 2018, 1:40:29 PM (6 years ago)
Author:
apl-haiku

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14513, comment 6

    initial v1  
    11The problem actually (mostly) seems to be with this little text field because it is constantly rendering the value and figuring out the plurals which I had previously learnt from Diver are more complex in Russian language than is the case in English.
    22
    3 ```
     3{{{
    44static BStringFormat format(B_TRANSLATE("{0, plural, "
    55  "one{# item} other{# items}}"));
    6 ```
     6}}}
    77
    88I can see that this can be sped-up by avoiding deriving this string many times; at least a couple of times for getting the size of the BView and once for rendering the text.  This is achieved by not allowing the field to be dynamic, but by pre-choosing a 'sensible' upper limit to the count of packages for this label and fixing the size of the field.  This is proabably acceptable for now and the speed seems to be quite a bit better.  It will be good to hear how this goes for you.