<div dir="ltr"><div dir="ltr">On Wed, Jun 5, 2019 at 11:11 AM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">You could try to adjust the FGL unit to use the pluggable sorting system introduced here: <a href="https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=41167" target="_blank">https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=41167</a></div></div></blockquote><div><br></div><div>Wouldn't that system itself need to be generic and not just use void pointers first? Or is that part of what you meant?</div><div><br></div><div>IMO something FGL would benefit from also is the removal of the probably-not-the-best-design inheritance from non-generic TFPSList to everything else, which prevents inlining in a large number of places (the compiler notes indicating such are visible basically any time you use anything from FGL.)</div></div></div>