[Gambas-devel] About gb.adt (2)

Benoît Minisini gambas at ...1...
Fri Aug 24 15:51:52 CEST 2012


Le 24/08/2012 15:45, Emil Lenngren a écrit :
> Hmm.. Red-black trees...
> I don't know how much you guys like C++, but why not simply make a
> wrapper around std::set<GB_VARIANT_VALUE>?
>
> std::set is fast and reliable. There would be no memory overhead for
> tree object and tree nodes compared to if you write your own. The code
> is already written.
> The only drawback I see is that you have to link to libstdc++. On the
> other hand, if you write your own tree, I think the binary code size
> will be larger because much of the stuff of std::set is already in the
> libstdc++.so-file.
>
> /Emil
>

Noooo... please, if possible, no dependency on the C++ library!

-- 
Benoît Minisini




More information about the Devel mailing list