<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Grep cache</title>
	<atom:link href="http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/</link>
	<description>Letting my inner geek out</description>
	<lastBuildDate>Fri, 06 Nov 2009 13:41:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris J</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-253</link>
		<dc:creator>Chris J</dc:creator>
		<pubDate>Fri, 06 Nov 2009 13:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-253</guid>
		<description>I&#039;ve been trying a few things out and resorted to trying this method (rejected before due to size of codebase, but lets see how it goes).

Just as a heads up, you might be able to do away with some cygwin&#039;y stuff and speed things up with native Windows tools (removing the overhead of cygwin - which IME can be slow when dealing with lots of stuff). Instead of &#039;grep&#039; look at &#039;findstr&#039;; similarly for ufind, try &#039;dir /s /b&#039;. I&#039;m still using Perl though (Strawberry Perl) :-)

Thus I&#039;m creating my index with:
findstr /n /s /i /e . *.asp *.cs *.cls *.xml *.xsl *. .... &#124; perl -pe &quot;s/[ \t]+/ /g&quot; &gt; ..\index.idx ... I&#039;ll then use native-NTFS to compress the file and findstr to search it :-)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying a few things out and resorted to trying this method (rejected before due to size of codebase, but lets see how it goes).</p>
<p>Just as a heads up, you might be able to do away with some cygwin&#8217;y stuff and speed things up with native Windows tools (removing the overhead of cygwin &#8211; which IME can be slow when dealing with lots of stuff). Instead of &#8216;grep&#8217; look at &#8216;findstr&#8217;; similarly for ufind, try &#8216;dir /s /b&#8217;. I&#8217;m still using Perl though (Strawberry Perl) <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thus I&#8217;m creating my index with:<br />
findstr /n /s /i /e . *.asp *.cs *.cls *.xml *.xsl *. &#8230;. | perl -pe &#8220;s/[ \t]+/ /g&#8221; &gt; ..\index.idx &#8230; I&#8217;ll then use native-NTFS to compress the file and findstr to search it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ignas</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-32</link>
		<dc:creator>Ignas</dc:creator>
		<pubDate>Fri, 22 Jun 2007 14:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-32</guid>
		<description>1) Ah, right, I forgot you’d moved to Emacs. Does Emacs not do a binary search on the tags file (like, um, Vim does)? Or does it do something really silly like load it all into a buffer and then search it?

IIRC no it does not do a binary search, and yes it suerly loads it and searches it.

I am using GNU id-utils for a fast search. It is a nice indexed text search utility, not sure if there is a windows version though.</description>
		<content:encoded><![CDATA[<p>1) Ah, right, I forgot you’d moved to Emacs. Does Emacs not do a binary search on the tags file (like, um, Vim does)? Or does it do something really silly like load it all into a buffer and then search it?</p>
<p>IIRC no it does not do a binary search, and yes it suerly loads it and searches it.</p>
<p>I am using GNU id-utils for a fast search. It is a nice indexed text search utility, not sure if there is a windows version though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Clapp</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-16</link>
		<dc:creator>Larry Clapp</dc:creator>
		<pubDate>Mon, 18 Jun 2007 21:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-16</guid>
		<description>1) Ah, right, I forgot you&#039;d moved to Emacs.  Does Emacs not do a binary search on the tags file (like, um, Vim does)?  Or does it do something really silly like load it all into a buffer and then search it?

2) Lots of &quot;Render&quot;?  That&#039;s stupid.  You should get them to fix their code.  (Yes I&#039;m kidding. ;)

Anyway, best of luck.</description>
		<content:encoded><![CDATA[<p>1) Ah, right, I forgot you&#8217;d moved to Emacs.  Does Emacs not do a binary search on the tags file (like, um, Vim does)?  Or does it do something really silly like load it all into a buffer and then search it?</p>
<p>2) Lots of &#8220;Render&#8221;?  That&#8217;s stupid.  You should get them to fix their code.  (Yes I&#8217;m kidding. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Anyway, best of luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bradbeveridge</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-15</link>
		<dc:creator>bradbeveridge</dc:creator>
		<pubDate>Mon, 18 Jun 2007 13:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-15</guid>
		<description>I haven&#039;t tried the ctags multiple file approach.  I tried a single ctags file on our 14Mb code base.  I think I had two problems
1) Searching was very slow -  this is probably a function of Emacs&#039; tags lookup more than anything else
2) Our C++ code has many classes that have the same member function names - names like Render.  I seem to remember ctags not dealing very well with that :)
I&#039;ll probably try ctags again when my frustration levels get high enough.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried the ctags multiple file approach.  I tried a single ctags file on our 14Mb code base.  I think I had two problems<br />
1) Searching was very slow &#8211;  this is probably a function of Emacs&#8217; tags lookup more than anything else<br />
2) Our C++ code has many classes that have the same member function names &#8211; names like Render.  I seem to remember ctags not dealing very well with that <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;ll probably try ctags again when my frustration levels get high enough.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Clapp</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-14</link>
		<dc:creator>Larry Clapp</dc:creator>
		<pubDate>Mon, 18 Jun 2007 12:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-14</guid>
		<description>Brad,

Thanks for posting this.  I finally got around to reading it.

It sounds like an interesting tool.  I&#039;d probably go with sean&#039;s suggestion and put the filename and line number right in the &quot;database&quot;.

That said -- have you read the ctags FAQ?  (http://ctags.sourceforge.net/faq.html#15)  It has several tips for using ctags in a directory hierarchy.  Combine that with Vim&#039;s ability to use multiple tag files, or even search an entire directory hierarchy for tags files, and I think ctags would work for you again.

If that doesn&#039;t work, I bet the ctags maintainer would like to hear from you.</description>
		<content:encoded><![CDATA[<p>Brad,</p>
<p>Thanks for posting this.  I finally got around to reading it.</p>
<p>It sounds like an interesting tool.  I&#8217;d probably go with sean&#8217;s suggestion and put the filename and line number right in the &#8220;database&#8221;.</p>
<p>That said &#8212; have you read the ctags FAQ?  (<a href="http://ctags.sourceforge.net/faq.html#15" rel="nofollow">http://ctags.sourceforge.net/faq.html#15</a>)  It has several tips for using ctags in a directory hierarchy.  Combine that with Vim&#8217;s ability to use multiple tag files, or even search an entire directory hierarchy for tags files, and I think ctags would work for you again.</p>
<p>If that doesn&#8217;t work, I bet the ctags maintainer would like to hear from you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-12</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Mon, 11 Jun 2007 16:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-12</guid>
		<description>Tried OpenGrok?  OpenSolaris uses it for cross referencing. It works well with large code bases.</description>
		<content:encoded><![CDATA[<p>Tried OpenGrok?  OpenSolaris uses it for cross referencing. It works well with large code bases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-11</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Mon, 11 Jun 2007 03:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-11</guid>
		<description>Have you tried tagbrowse?r  It&#039;s a gui tool (Win, Mac, Linux) for searching withing exuberant ctag files. It can search tag files of 10&#039;s of MB in less than a second. 

http://www3.telus.net/ngan/tagbrowser/tagbrowser.html


If you like vim and use visual studio you should also check out viemu.com.  The nice thing is that you still get the facilities of visual studio as well as vim editing functions.

-- Phillip
(author of tagbrowser)</description>
		<content:encoded><![CDATA[<p>Have you tried tagbrowse?r  It&#8217;s a gui tool (Win, Mac, Linux) for searching withing exuberant ctag files. It can search tag files of 10&#8217;s of MB in less than a second. </p>
<p><a href="http://www3.telus.net/ngan/tagbrowser/tagbrowser.html" rel="nofollow">http://www3.telus.net/ngan/tagbrowser/tagbrowser.html</a></p>
<p>If you like vim and use visual studio you should also check out viemu.com.  The nice thing is that you still get the facilities of visual studio as well as vim editing functions.</p>
<p>&#8211; Phillip<br />
(author of tagbrowser)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-9</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 09 Jun 2007 10:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-9</guid>
		<description>you have seen the &quot;Find References&quot; entry on the &quot;VAssistX&quot; menu, haven&#039;t you?</description>
		<content:encoded><![CDATA[<p>you have seen the &#8220;Find References&#8221; entry on the &#8220;VAssistX&#8221; menu, haven&#8217;t you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bradbeveridge</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-7</link>
		<dc:creator>bradbeveridge</dc:creator>
		<pubDate>Fri, 08 Jun 2007 21:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-7</guid>
		<description>The Perl code used to be broken.  I had a &lt;= sign - Wordpress ate some of the code after that.  There may still be breakages.</description>
		<content:encoded><![CDATA[<p>The Perl code used to be broken.  I had a &lt;= sign &#8211; WordPress ate some of the code after that.  There may still be breakages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean</title>
		<link>http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-6</link>
		<dc:creator>sean</dc:creator>
		<pubDate>Fri, 08 Jun 2007 20:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://bradbeveridge.wordpress.com/2007/06/07/grep-cache/#comment-6</guid>
		<description>Another approach might be to prepend the filename and line number when creating the index, effectively faking the &quot;grep -n&quot; output that Emacs uses:

find src ... &#124; xargs awk &#039;{ print FILENAME &quot;:&quot; FNR &quot;:&quot; $0 }&#039; &gt; index</description>
		<content:encoded><![CDATA[<p>Another approach might be to prepend the filename and line number when creating the index, effectively faking the &#8220;grep -n&#8221; output that Emacs uses:</p>
<p>find src &#8230; | xargs awk &#8216;{ print FILENAME &#8220;:&#8221; FNR &#8220;:&#8221; $0 }&#8217; &gt; index</p>
]]></content:encoded>
	</item>
</channel>
</rss>
