Aryeh Gregor wrote:
> On Tue, Aug 3, 2010 at 10:59 AM, soxred93 <[email protected]> wrote:
>   
>> Just butting in here, if I recall correctly, both the PHP-native
>> mb_strlen() and the MediaWiki fallback mb_strlen() functions are
>> considerably slower (1.5 to 5 times as slow).
>>     
>
> They only have to be run once, when the revision is saved.  It's not
> likely to be a noticeable cost.
>   
Yup, though we might as well remember that not everyone has mb_ 
functions installed.
MediaWiki is intended to be functional both with, and without mb_ 
functions. That's another point towards storing both and falling back to 
bytes when the char field isn't populated.

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]


-- 
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to