[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] vim slow
On 30/09/14 22:27, Vincent Rivière wrote:
> On 30/09/2014 12:00, Alan Hourihane wrote:
>> Does this patch fix things for you Vincent ?
> Your patch is similar to my tests, it fixes the slowness in my freshly
> built vim.
> If there are no adverse effects, you can commit this Fpoll() patch.
> However, this patch does *not* fix my old vim built on 2013/11/16. I
> think it is because you changed the select() implementation in the
> MiNTLib (did you?).
> Maybe Fselect() suffers of the same problem?
> However, by looking at the documentation, it seems that there is no
> way to tell Fselect() to return immediately...
Try the attached patch for your older vim.
RCS file: /mint/freemint/sys/dosfile.c,v
retrieving revision 1.43
diff -u -r1.43 dosfile.c
--- sys/dosfile.c 30 Sep 2014 10:06:08 -0000 1.43
+++ sys/dosfile.c 30 Sep 2014 21:58:23 -0000
@@ -791,6 +791,11 @@
mask = mask << 1L;
+ if (timeout == 0)
+ goto cancel;
if (count == 0)
/* no data is ready yet */