<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Yeah, it sounds like a good approach to tackle header caching a bit later. "P<span>recompiled preamble" looks promising so we can keep this in mind as we go.</span></p>
<p><span><br>
</span></p>
<p><span>Cheers,</span></p>
<p><span>Marc-André<br>
</span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Doug Schaefer <dschaefer@blackberry.com><br>
<b>Sent:</b> Thursday, May 18, 2017 10:44:18 AM<br>
<b>To:</b> Marc-André Laperle; via cfe-dev<br>
<b>Cc:</b> zeratul976@hotmail.com; zaks.anna@gmail.com; Dániel Krupp; Zoltan Porkoláb; Marton Csordas<br>
<b>Subject:</b> Re: Adding indexing support to Clangd</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 2017-05-17, 6:38 PM, "Marc-André Laperle"<br>
<marc-andre.laperle@ericsson.com> wrote:<br>
>  - For header caching, I wonder if it is possible to reuse the<br>
>precompiled header support in Clang. There would be some logic that would<br>
>decide whether or not a precompiled header could be used depending on the<br>
>preprocessing context (same macro definitions, etc).<br>
<br>
Išm not certain header cacheing is needed right away. We did it in the CDT<br>
because our parsers were fairly slow and indexing a project took a very<br>
long time. I have hope that clang would be faster. At the very least, you<br>
would want cacheing to be optional so you need to be able to work without<br>
it. But make sure you have the architecture to graft it in later.<br>
<br>
In CDT we cheated a lot to gain performance and the cost of accuracy. The<br>
results are still very good so its an interesting balancing act.<br>
<br>
Doug Schaefer<br>
Eclipse CDT Project Lead<br>
<br>
</div>
</span></font>
</body>
</html>