public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: setup
Date: Tue, 09 Jun 2015 09:56:00 -0000	[thread overview]
Message-ID: <20150609095604.GA4993@calimero.vinschen.de> (raw)
In-Reply-To: <878ubtor9g.fsf@Rainer.invalid>

[-- Attachment #1: Type: text/plain, Size: 2135 bytes --]

On Jun  8 22:54, Achim Gratz wrote:
> Corinna Vinschen writes:
> > I'm certainly not de-valuing your patch, but that makes me suspicious.
> > The impact of reading from a local SSD should be rather low.  That
> > reminds me of the buffer size problem slowing down SHA512 evaluation,
> > see git diff 0c7564..8648b05.
> >[...]
> > YY_INPUT	   8K
> >
> > Especially YY_READ_BUF_SIZE defined as 8K might be a culprit here.
> 
> At least from the network the slow part is the loading of the file
> (while the progress bar updates).  Parsing should happen in that split
> second when the loading is complete and before it switches to the
> chooser pane.

Right, in the networking case the download should be the major factor,
but I was referring to the SSD case.

> > Can you speed up reading the ini file noticably by defining
> > YY_READ_BUF_SIZE to 65536 in inilex.ll?  If so, is the impact of using
> > base64 still an issue, performance-wise?
> 
> That's not the right place to do the override, since it ends up after
> the default definition.

Huh?  Not for me:

diff --git a/inilex.ll b/inilex.ll
index 81a7f24..b5ea619 100644
--- a/inilex.ll
+++ b/inilex.ll
@@ -29,6 +29,7 @@
 #include "sha2.h"
 
 #define YY_INPUT(buf,result,max_size) { result = ini_getchar(buf, max_size); }
+#define YY_READ_BUF_SIZE 65536
 
 static int ini_getchar(char *buf, int max_size);
 static void ignore_line (void);

> In any case, from the Flex manual it doesn't
> make sense to increase that buffer ("it's almost always too large") and
> it is being fed from an io_stream, which is buffered itself.

Yes, but it's using the default buffersize of the underlying MSVCRT
stdio, which is using some value I don't know off the top of my head.
Typically this would be 1K or 4K.  YY_INPUT is reading in 8K chunks, so
the underlying stdio is very likely already skipping its buffering.
So changing YY_READ_BUF_SIZE to 64K *should* have an impact.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-06-09  9:56 UTC|newest]

Thread overview: 125+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29 19:37 setup Achim Gratz
2015-05-31 10:24 ` setup Corinna Vinschen
2015-06-01 18:11   ` setup Achim Gratz
2015-06-01 18:34     ` setup Corinna Vinschen
2015-06-01 19:49       ` setup Achim Gratz
2015-06-01 21:06         ` setup Corinna Vinschen
2015-06-02  5:17           ` setup Achim Gratz
2015-06-02  8:29             ` setup Corinna Vinschen
2015-06-02 16:24               ` setup Achim Gratz
2015-06-03  8:19                 ` setup Corinna Vinschen
2015-06-03  8:31                   ` setup Marco Atzeri
2015-06-03 11:07                     ` setup Corinna Vinschen
2015-06-03 12:45                       ` setup Eric Blake
2015-06-03 16:51                   ` setup Achim Gratz
2015-06-03 17:04                   ` setup Yaakov Selkowitz
2015-06-03 17:11                     ` setup Achim Gratz
2015-06-08 12:56                       ` setup Corinna Vinschen
2015-06-08 13:49                         ` setup Corinna Vinschen
2015-06-08 18:34                           ` setup Yaakov Selkowitz
2015-06-08 18:47                             ` setup Corinna Vinschen
2015-06-08 19:05                               ` setup Yaakov Selkowitz
2015-06-08 19:35                                 ` setup Corinna Vinschen
2015-06-08 18:52                         ` setup Achim Gratz
2015-06-06 20:58 ` setup Achim Gratz
2015-06-07 20:21   ` setup Achim Gratz
2015-06-08 13:28     ` setup Corinna Vinschen
2015-06-08 18:07       ` setup Achim Gratz
2015-06-08 19:31         ` setup Corinna Vinschen
2015-06-08 20:54           ` setup Achim Gratz
2015-06-09  9:56             ` Corinna Vinschen [this message]
2015-06-09 16:54               ` setup Achim Gratz
2015-06-10  8:05                 ` setup Corinna Vinschen
2015-06-10 17:47                   ` setup Achim Gratz
2015-06-10 18:54                     ` setup Corinna Vinschen
2015-06-10 20:50                       ` setup Achim Gratz
2015-06-11 10:06                         ` setup Corinna Vinschen
2015-06-11 10:11                           ` setup Corinna Vinschen
2015-06-11 18:10                           ` setup Achim Gratz
2015-06-11 21:03                         ` setup Achim Gratz
2015-06-12 10:29                           ` setup Corinna Vinschen
2015-06-12 17:05                             ` setup Achim Gratz
2015-06-12 17:37                               ` setup Corinna Vinschen
2015-06-24 20:00                                 ` setup Achim Gratz
2015-06-25  8:59                                   ` setup Corinna Vinschen
2015-06-25 16:40                                     ` setup Achim Gratz
2015-06-25 20:16                                       ` setup Achim Gratz
2015-06-26  8:34                                         ` setup Corinna Vinschen
2015-06-26 18:07                                           ` setup Achim Gratz
2015-06-26 19:03                                             ` setup Corinna Vinschen
2015-06-28 13:40                               ` setup Achim Gratz
2015-06-29 13:41                                 ` setup Corinna Vinschen
2015-06-30  4:59                                   ` setup Achim Gratz
2015-06-30 16:40                                     ` setup Corinna Vinschen
2015-06-30 17:14                                       ` setup Achim Gratz
2015-06-30 18:42                                         ` setup Corinna Vinschen
2015-07-01 20:37                                       ` setup Achim Gratz
2015-07-02  9:10                                         ` setup Corinna Vinschen
2015-07-02 21:03                                           ` setup Achim Gratz
2015-07-03 10:14                                             ` setup Corinna Vinschen
2015-07-11 21:31                                           ` setup Achim Gratz
2015-07-13  9:44                                             ` setup Corinna Vinschen
2015-07-14 19:57                                               ` setup Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2015-07-28 19:19 setup Achim Gratz
2015-07-29 12:51 ` setup Corinna Vinschen
2015-08-01 15:52   ` setup Achim Gratz
2015-08-03 18:03     ` setup Achim Gratz
2015-08-03 19:07       ` setup Achim Gratz
2015-08-03 20:02         ` setup Achim Gratz
2015-08-03 20:29           ` setup Corinna Vinschen
2015-08-03 20:31             ` setup Achim Gratz
2015-08-03 20:40               ` setup Corinna Vinschen
2015-08-03 20:54                 ` setup Achim Gratz
2015-08-03 21:20             ` setup Achim Gratz
2015-08-04 18:35               ` setup Achim Gratz
2015-08-05  8:08                 ` setup Corinna Vinschen
2015-08-05 15:42                   ` setup Achim Gratz
2015-08-06 10:03                     ` setup Corinna Vinschen
2015-08-06 15:58                       ` setup Achim Gratz
2015-08-07 19:47                         ` setup Corinna Vinschen
2015-08-07 21:05                           ` setup Warren Young
2015-08-10  8:44                             ` setup Corinna Vinschen
2015-08-10 15:02                               ` setup Warren Young
2015-08-11  7:48                                 ` setup Corinna Vinschen
2015-08-11 19:53                                   ` setup Warren Young
2015-08-08  5:22                           ` setup Achim Gratz
2015-08-10  9:18                             ` setup Corinna Vinschen
2015-08-10 16:33                               ` setup Achim Gratz
2015-08-10 14:44                             ` setup Warren Young
2015-08-10 16:40                               ` setup Achim Gratz
2015-08-10 16:45                                 ` setup Warren Young
2015-08-10 17:00                                   ` setup Achim Gratz
2015-08-10 17:09                                     ` setup Warren Young
2015-08-10 18:03                                       ` setup Achim Gratz
2015-08-10 18:41                                         ` setup Warren Young
2002-03-04 19:28 setup Robert Collins
2002-03-04 23:38 ` setup Michael A Chase
2002-03-05  8:31 ` setup Brian Keener
2002-02-20 23:10 Setup Robert Collins
2002-02-18  6:12 Setup Robert Collins
2002-02-18 13:06 ` Setup Brian Keener
2002-02-18 17:26   ` Setup Robert Collins
2002-02-18 20:05     ` Setup Christopher Faylor
2002-02-18 20:19       ` Setup Robert Collins
2002-02-18 20:31         ` Setup Brian Keener
2002-02-18 20:34           ` Setup Robert Collins
2002-02-18 20:44             ` Setup Brian Keener
2002-02-18 20:50               ` Setup Robert Collins
2002-02-19  8:53                 ` Setup Brian Keener
2002-02-24  3:03                   ` Setup Robert Collins
2002-02-18 20:46         ` Setup Christopher Faylor
2002-02-18 20:56           ` Setup Christopher Faylor
2002-02-20 22:45           ` Setup Gary R. Van Sickle
2002-02-20 23:00             ` Setup Christopher Faylor
2002-02-24  3:05           ` Setup Robert Collins
2002-02-24  9:07             ` Setup Christopher Faylor
2002-02-18 20:18     ` Setup Brian Keener
2002-02-18 20:30       ` Setup Robert Collins
2002-02-18 18:48   ` Setup Robert Collins
2002-02-18 19:50     ` Setup Robert Collins
2002-02-22  5:38       ` Setup Brian Keener
2002-02-22 14:46         ` Setup Robert Collins
2002-02-22 19:15           ` Setup Brian Keener
2002-02-22 23:04             ` Setup Christopher Faylor
2002-02-24  2:38             ` Setup Robert Collins
2002-02-27 10:20               ` Setup Brian Keener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150609095604.GA4993@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).