<div class="gmail_quote">On Thu, Feb 24, 2011 at 12:14 AM, floris <span dir="ltr"><<a href="mailto:flo.ruijt@gmail.com">flo.ruijt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I've looked into rxx_allocator. At first I had some issues profiling it,<br>
as it were inlined (Valgrind should learn how to profile that anyway).<br>
<br>
the previous allocator was not very good. it used a realloc'd array of<br>
pointers to blocks, which would be deleted in the destructor.<br>
<br>
my allocator uses a linked list of blocks, which are put in a static<br>
linked list at the destructor. it uses a QMutex to make sure that no two<br>
threads try to pull the same block.<br>
<br>
<br>
the other part of this patch are the removal of useless includes of<br>
memorypool.h (which made large parts of kdevelop recompile on every edit<br>
to the allocator) and templating listnode on pool so that it doesn't<br>
need the memorypool.h header in it's own.<br>
<br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br><div>Sounds like a not-so-straightforward optimization.</div><div>Is it really faster? what is the improvement using duchainify?</div><div><br></div><div>Aleix</div>