← Back to team overview

qpdfview team mailing list archive

Re: Time delay before searching

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Arnuad,

Am 18.10.2013 20:59, schrieb Arnaud Schmittbuhl:
> 
> Hi,
> 
> 1/ After entering some text in the search field I can (a) wait 2
> seconds for the text to be highlighted or (b) press enter to start
> the search immediately. But when I press enter, it seems to me that
> it takes around 2 seconds for the text to be highlighted. It looks
> like the search does not start immediately. Is this just an
> impression?

Just check it by looking at the code and running it, and there should
be no extra delay before the search is begun when pressing return. The
is an unavoidable delay since searching will start a new thread which
has to communicate back its results to the main program. (It's the
same with rendering: Compared to synchronous operation, there is a
noticeable delay, but the overall improved responsibility is worth it.)

> 2/ Could the 2 seconds delay be reduced to 1, 0.5, 0.2 or even 0
> second? Will a 0s delay lead us to trouble?

As pressing return will shortcut any explicit delay, I don't think
another configurable setting is warranted.

If there really is a two second timer running out before the search
begins, this would be bug. Maybe someone can try to confirm this?

Best regards, Adam.

> bye, (qpdfview 0.4.6.99~1334)
> 

P.S.: Have you checked you configured shortcuts that nothing else
"eats up" the return key press? You could make sure by just resetting
the shortcuts to their defaults.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAEBAgAGBQJSYh2HAAoJEPSSjE3STU34hoMIAMIydM1jN1sp/C00fK1iP51P
+S6F5rS3zjm9xCVEyNKiQMFUHYT6WOoAXhNTubcXg+Ho80wOZvTmrGiJwzL5cyzr
NDvmx7/5QHLb3CipmiiQeICsAsGxSW+xf8uuET2CfDr4E2rzlBw8YLDED6V03L0Q
C77eP0dwLP7Mx7oIxZpw9BqUuPldZck0p2VwF0BTjt/tpujR4ECiYvxfAnp0ydhS
6FQ8DUYzZL4xfPV3bWhmRK86Xw8dJ/Glp/D8Ctv58fI01bpnAa3kOgya4srdT6yM
VHbJMDh1Pmdn3TllaoKtWA5FhkfpgM7t6dg/N+GpW+2Kg74acpxlQw36eGuH+do=
=Sn3I
-----END PGP SIGNATURE-----


Follow ups

References