<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 April 2013 22:08, Harold Aling <span dir="ltr"><<a href="mailto:geany@sait.nl" target="_blank">geany@sait.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wed, Apr 17, 2013 at 1:44 PM, Harold Aling <<a href="mailto:geany@sait.nl">geany@sait.nl</a>> wrote:<br>
> On Wed, Apr 17, 2013 at 1:35 PM, Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> On 17 April 2013 21:25, Harold Aling <<a href="mailto:geany@sait.nl">geany@sait.nl</a>> wrote:<br>
>>><br>
>>> On Wed, Apr 17, 2013 at 1:16 PM, Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br>
>>> ><br>
>>> >> Lex, any news on speeding up the project index? The tags file<br>
>>> >> generation was done in 6 seconds, the Project plugin takes up to 10<br>
>>> >> minutes to do the same, with the addition of the "go to definition"<br>
>>> >> support ...<br>
>>> ><br>
>>> ><br>
>>> > Well, you will have to address the speed of the project plugin to its<br>
>>> > developer, but if it has extra functionality I guess that could be part<br>
>>> > of<br>
>>> > why its slower.  I think it is scanning all the files in the project,<br>
>>> > finding the tags and adding them all to the tagmanager as if the files<br>
>>> > are<br>
>>> > open.  That could be part of the delay, but the maintainer would know.<br>
>>> ><br>
>>> > I checked with the expert on Geany's tags capability, and sadly none of<br>
>>> > the<br>
>>> > tags system knows the filenames, so it can't do goto definition.<br>
>>> ><br>
>>> >><br>
>>> >><br>
>>> >> $ time geany -g /tmp/drupal7.php.tags $(find . -type f -name '*.php'<br>
>>> >> -o -name '*.module' -o -name '*.inc' -o -name '*.install' -o -name<br>
>>> >> '*.engine')<br>
>>> >><br>
>>> >> real 0m6.322s<br>
>>> >> user 0m6.228s<br>
>>> >> sys 0m0.088s<br>
>>> ><br>
>>> ><br>
>>> > How long does it take to load the tags?<br>
>>><br>
>>> Within a second:<br>
>>><br>
>>> 13:23:06: This is Geany 1.24 (git >= 235b861).<br>
>>> 13:23:06: File<br>
>>> /home/harold/checkout/XXXX/modules/contrib/registration/registration.module<br>
>>> opened(1).<br>
>>> 13:23:06: File<br>
>>> /home/harold/checkout/XXXX/modules/contrib/registration/includes/registration.forms.inc<br>
>>> opened(2).<br>
>>> 13:23:06: File<br>
>>> /home/harold/checkout/drupal7/sites/all/modules/contrib/flag/flag.module<br>
>>> opened(3).<br>
>>> 13:23:06: File<br>
>>> /home/harold/checkout/XXXX/modules/custom/XXXXmod/XXXXmod.module<br>
>>> opened(4).<br>
>>> 13:23:06: File<br>
>>> /home/harold/checkout/XXXX/modules/custom/XXXXmod/XXXXmod.install<br>
>>> opened(5).<br>
>>> 13:23:06: File /home/harold/checkout/XXXX/modules/contrib/vppr/vppr.module<br>
>>> opened(6).<br>
>>> 13:23:06: File<br>
>>> /home/harold/checkout/XXXX/modules/features/XXXX_ct_page/XXXX_ct_page.info<br>
>>> opened(7).<br>
>>><br>
>><br>
>> Hi Harold,<br>
>><br>
>> None of the above are tags files, how long does it take to load<br>
>> drupal7.php.tags?  And does that contain the tags for *all* the files that<br>
>> gproject indexes?<br>
>><br>
>> I do want to ensure that we are comparing like to like.<br>
><br>
> The files above are from my last session and are loaded within a<br>
> second. Geany also starts instantly end, of course, has all tags and<br>
> calltips loaded after opening those 7 files.<br>
><br>
> I will re-enable the Project plugin, move<br>
> ~/.config/geany/tags/d7.php.tags and give Geany a reboot. Back in 10<br>
> minutes! ;)<br>
<br>
</div></div>Re-opening the project: ~2 minutes<br>
Closing Geany: ~2 minutes<br>
Starting Geany: ~2 minutes<br>
<br>
13:58:48: This is Geany 1.24 (git >= 235b861).<br>
14:00:25: Project "D7" opened.<br>
14:00:25: File /home/harold/checkout/XXXX/modules/contrib/registration/registration.module<br>
opened(1).<br>
14:00:25: File /home/harold/checkout/XXXX/modules/contrib/registration/includes/registration.forms.inc<br>
opened(2).<br>
14:00:25: File /home/harold/checkout/XXXX/modules/custom/XXXXmod/XXXXmod.install<br>
opened(3).<br>
<br>
This is without any sites enabled, so there are exactly the same files<br>
as the tags.<br>
<br>
$ find . -type f -name '*.php' -o -name '*.module' -o -name '*.inc' -o<br>
-name '*.install' -o -name '*.engine' | wc -l<br>
2746<br>
<br>
Adding websites in our Drupal distribution will add 1-2 minutes per<br>
site when indexing them with Project, it even seems/feels to be<br>
exponentially, but I can't prove that ... but I do remember something<br>
about sorting the tags on each added tag?<br></blockquote><div><br></div><div style>Ok, so what I think you are saying gproject is indexing many more tags because it is including other stuff.  Its not really comparing the same thing to just loading the tag file.</div>
<div style><br></div><div style>I'm not sure exactly how symbols are added, but I thought that the sort was done at the end not each symbol when adding them as tags.  Could be wrong though :).</div><div style><br></div>
<div style>Cheers</div><div style>Lex</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>