<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi Bob, </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">What size code base are you running this on?  Can you talk a little bit about the bottlenecks you found?  It doesn't make sense to me to drop the current implementation, which I bet has had little or no attempts to optimize it, without understanding the tradeoffs, both in performance and library support.  </div> <br> <div id="bloop_sign_1479148328746615040" class="bloop_sign"></div> <br><p class="airmail_on">On November 14, 2016 at 9:13:25 AM, Adam Nemet via llvm-dev (<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div></div><div>



<title></title>


<div class="">Again I am still undecided which way this should go
but I was also wondering about the speed difference if we used the
C-based parser in PyYAML (<a href="http://pyyaml.org/wiki/LibYAML" class="">http://pyyaml.org/wiki/LibYAML</a>).</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 13, 2016, at 12:19 AM, Adam Nemet <<a href="mailto:anemet@apple.com" class="">anemet@apple.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Bob,
<div class=""><br class=""></div>
<div class="">I am glad you’re finding opt-viewer useful.  I
am generally fine this being rewritten in C++.  The idea was
that once the prototype proves itself to be useful this would be
considered.</div>
<div class=""><br class=""></div>
<div class="">Do you have ideas how to get syntax highlighting
implemented?  In Python, Pygments makes this easy.</div>
<div class=""><br class=""></div>
<div class="">Another usage model I was considering is for people
who ssh to remote servers for their builds.  In this case it
should be easy in Python to have  a simple HTTP server started
in opt-viewer.</div>
<div class=""><br class=""></div>
<div class="">On the other hand, I am not sure if we have
precedence to ship tools written in Python in LLVM so we may *have
to* move. </div>
<div class=""><br class=""></div>
<div class="">Adam</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Nov 11, 2016, at 11:50 PM, Bob Haarman
<<a href="mailto:llvm@inglorion.net" class="">llvm@inglorion.net</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">

<div class="">
<div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;" class="">
<div class="">Hi Adam,<br class=""></div>
<div class=""><br class=""></div>
<div class="">Thank you for writing opt-viewer! I've been playing
around with it and found it helps me understand what optimizations
were performed, which were missed, and why, as well as easily
navigate to the relevant code. Wanting to use it on larger
projects, I found that it can take a while to analyze the
optimization reports. Since there doesn't seem to be too much code
in it yet, I figured it wouldn't be too much work to implement the
same functionality in C++, which should give us a nice speedup
compared to the current Python implementation. I have something
that implements most of the functionality: the index page is
generated and links to lines on source pages, which are also
generated, but I haven't gotten to annotations on source pages yet.
I expect to put up some code for review next week, but wanted to
post here in case others are thinking along similar lines so we can
hopefully avoid duplicating effort.<br class=""></div>
<div class=""><br class="">
Cheers,</div>
<div class=""><br class=""></div>
<div class="">Bob<br class=""></div>
<div class=""><br class=""></div>
</div>
</div>
</div>
</blockquote>
</div>
<br class=""></div>
</div>
</div>
</blockquote>
</div>
<br class="">


_______________________________________________<br>LLVM Developers mailing list<br>llvm-dev@lists.llvm.org<br>http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br></div></div></span></blockquote></body></html>