Changes between Initial Version and Version 1 of Ticket #14513, comment 6
- Timestamp:
- Oct 3, 2018, 1:40:29 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14513, comment 6
initial v1 1 1 The 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. 2 2 3 ``` 3 {{{ 4 4 static BStringFormat format(B_TRANSLATE("{0, plural, " 5 5 "one{# item} other{# items}}")); 6 ``` 6 }}} 7 7 8 8 I 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.