Subject: Re: bug#47712: 27.1; Provide `string-display-width` function, which takes properties into account, `substring-width`

From: Eli Zaretskii <[email-masked]>
Date: Mon, 12 Apr 2021 17:32:56 +0300

> Date: Mon, 12 Apr 2021 17:15:17 +0300
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked]
> 
> > But for we can still look at the micro benchmark.  The `string-width` 
> > function is 200 times faster than the `string-pixel-width` function. 
> 
> And if you reuse the same temp buffer?

My benchmarking indicates that reusing the buffer makes
string-pixel-width only 10 times slower than string-width, i.e. 50
about microseconds per call.