Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


At 5:13pm -0500 Wed, 17 Nov 2010, Julien Nabet wrote:
PS : in the easy hack, "for RTL_CONSTASCII_USTRINGPARAM macro",
wouldn't it be better to change the "grep" in "fgrep" in order to
make the searching faster ?

That might have marginally been an issue once upon a time, but now, they're likely to be linked to the same binary. If they aren't linked on your implementation, unless you're doing lots of recursive uses of grep on extremely large files, I think you'll barely notice any speed difference, especially compared to the time it takes to read data from the disk or to edit any code.

Since the origin of fgrep, algorithms and computer hardware have come a /long/ way. Certainly in this context, I doubt grep will be a workflow bottleneck.

For reference, GNU's grep specifically deprecates fgrep in favor of grep -F.

http://www.gnu.org/software/grep/manual/grep.html

Another source of potentially useful info:

http://en.wikipedia.org/wiki/Grep

Cheers,

Kevin

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.