<div dir="ltr">In <a href="https://github.com/nico/complete">https://github.com/nico/complete</a> , I think went with a plugin that does tags in parallel with regular compilation, and the plugin added about 10% to build time. Things like "pragma synchronous = off" and "pragma journal_mode = memory" helped quite a bit iirc. The plugin code is somewhere in the server/ folder. I haven't touched that project in a long time, but maybe you can crib some stuff from it.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 9, 2014 at 12:48 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 9 May 2014 15:36, Tobias Grosser <<a href="mailto:tobias@grosser.es">tobias@grosser.es</a>> wrote:<br>
> - I wonder how quick querying the database is. In fact,<br>
> if those queries are quick (less than 50ms) even for big<br>
> databases, this would extremely interesting as you could in<br>
> an editor for example add missing includes as you type.<br>
<br>
</div>I don't expect the db to be the bottleneck here. If you plan your<br>
table reasonably well (and this usage is *very* simple for a<br>
relational database), queries should return results in milliseconds<br>
for almost all queries, including inserts and updates.<br>
<br>
However, during the parse, because you'll be listing all<br>
relationships, if you insert one at a time, preparing the queries will<br>
amount to a significant portion of the run-time. There are ways of<br>
inserting blocks of data on the same query that you might consider, or<br>
even creating a CSV and importing (MySQL could do that, not sure about<br>
SQLite).<br>
<br>
But after the database is set up, updating and selecting will be trivial.<br>
<br>
cheers,<br>
--renato<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>