On Mon, Sep 19, 2016 at 2:37 PM Greg Clayton <gclay...@apple.com> wrote:

>
> > Just thinking out loud here, but one possibility is to have multiple
> pools.  One which is ref counted and one which isn't.  If you need
> something to live forever, vend it from the non-ref-counted pool.
> Otherwise vend it from the ref counted pool.
>
> Again, since we already are using LLVM under the hood here, I would hope
> to avoid changes if possible.
>
> Right, but we aren't specifically using the llvm::StringPool class which
ref counts.  idk, maybe there wouldnt' be much savings, but I remember you
saying a long time ago that ConstStrings are a huge source of memory usage
in LLDB.  So it seems like if we could ref-count when possible, it would be
a major savings.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to