<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">It was on headless server using <b>grep</b><b></b>...
I have parsed all resourcestrings from lazarus and then was
looking for their appearance in the code... I just wrote short
script in bash, because I had to write it through ssh from mobile
(free time, no laptop). I have tested search in files function on
the server and it took 3 seconds first time to search through
whole source tree... I'm sorry if I made any confusion or gossip
around lazarus Search in Files function :-D<br>
<pre class="moz-signature" cols="72">Václav Valíček
<a class="moz-txt-link-abbreviated" href="mailto:vaclav@valicek.name">vaclav@valicek.name</a></pre>
Dne 16.7.2014 20:18, Mattias Gaertner napsal(a):<br>
</div>
<blockquote cite="mid:20140716201857.50caa71d@limapholos"
type="cite">
<pre wrap="">On Wed, 16 Jul 2014 18:36:23 +0200
Václav Valíček <a class="moz-txt-link-rfc2396E" href="mailto:vaclav@valicek.name"><vaclav@valicek.name></a> wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Same overkill as you describe above, if you realise that most projects
are dependent on LCL (And it on LCLBase, next LazUtils, next FCL...) and
it is huge bunch of files....
</pre>
</blockquote>
<pre wrap="">Once searched, the OS has the files in cache and search takes
only a few seconds on recent machines.
</pre>
</blockquote>
<pre wrap="">While I was doing experiments with resourcestrings, I had clean git
checkout of repo (without binaries) and script that greped
resourcestrings (or any other word) in source tree... On quadcore server
with 4GB of RAM, WD Black (server) HDD and only running ssh and nginx
(load was ~0.15) the search took about 25-30 seconds... On my laptop, it
was two minutes...
</pre>
</blockquote>
<pre wrap="">
What have you searched?
Using "Find in files" to search for a plain string case insensitive in
the whole Lazarus sources (no fpc sources) *.pas;*.pp;*.inc;*.lfm under
Linux takes about 3 secs here.
Of course the first time is much longer, when the OS has to load the
files from disk.
Mattias
--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>