<div>If stack space is of concern, I think it would be safer to go back to vector.  Using vector will mean more heap allocations, but the overall memory usage would probably be less.</div>
<div> </div>
<div>How do you measure the stack space (i.e. is there a simple way besides inspection in the debugger)?  I'd like to measure both.<br></div>
<div>-John<br></div>
<div class="gmail_quote">On Fri, Oct 29, 2010 at 2:22 PM, Dale Johannesen <span dir="ltr"><<a href="mailto:dalej@apple.com">dalej@apple.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="WORD-WRAP: break-word">Interesting.  It's true very small sizes are most common for these vectors, but I wouldn't have expected the overhead to be that significant.  Perhaps try lowering all the fixed allocations to 4? 
<div class="im">
<div><br>
<div>
<div>On Oct 29, 2010, at 2:10 PMPDT, Nick Lewycky wrote:</div><br>
<blockquote type="cite"><span style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; WORD-SPACING: 0px">On 29 October 2010 10:29, John Thompson<span> </span><span dir="ltr"><<a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a>></span><span> </span>wrote:<br>

<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Author: jtsoftware<br>Date: Fri Oct 29 12:29:13 2010<br>New Revision: 117667<br><br>URL:<span> </span><a href="http://llvm.org/viewvc/llvm-project?rev=117667&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=117667&view=rev</a><br>
Log:<br>Inline asm multiple alternative constraints development phase 2 - improved basic logic, added initial platform support.<br></blockquote>
<div><br></div>
<div>This change makes SelectionDAGBuilder::visitInlineAsm use up 30k of stack space, largely due to the switch from std::vector to SmallVector. Please fix!</div></span></blockquote></div><br></div></div></div></blockquote>
</div><br><br clear="all"><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br>