Re: [hackers] Re: [dmenu][patch] Improve speed of drw_text when provided with large strings

2022-03-13 Thread NRK
On Sun, Dec 26, 2021 at 07:29:27PM +0100, Hiltjo Posthuma wrote: > > Thanks for the patch. It uses indeed less resources for very long lines and > > it > > makes more sense to do it this way. > > > > A small change for the test script, you probably want to add a newline > > (echo) > > between

Re: [hackers] Re: [dmenu][patch] Improve speed of drw_text when provided with large strings

2021-12-26 Thread Hiltjo Posthuma
On Mon, Aug 09, 2021 at 06:35:57PM +0200, Hiltjo Posthuma wrote: > On Sat, Aug 07, 2021 at 09:39:44PM -0400, Miles Alan wrote: > > On Sat, Aug 7, 2021, at 9:34 PM, m...@milesalan.com wrote: > > > - for (len = MIN(utf8strlen, sizeof(buf) - 1); len && ew > > > > w; len--) > > > -

Re: [hackers] Re: [dmenu][patch] Improve speed of drw_text when provided with large strings

2021-08-09 Thread Hiltjo Posthuma
On Sat, Aug 07, 2021 at 09:39:44PM -0400, Miles Alan wrote: > On Sat, Aug 7, 2021, at 9:34 PM, m...@milesalan.com wrote: > > - for (len = MIN(utf8strlen, sizeof(buf) - 1); len && ew > > > w; len--) > > - drw_font_getexts(usedfont, utf8str, len, , > >

[hackers] Re: [dmenu][patch] Improve speed of drw_text when provided with large strings

2021-08-07 Thread Miles Alan
On Sat, Aug 7, 2021, at 9:34 PM, m...@milesalan.com wrote: > - for (len = MIN(utf8strlen, sizeof(buf) - 1); len && ew > > w; len--) > - drw_font_getexts(usedfont, utf8str, len, , > NULL); > + if (ew > w) > +