[Geany-Devel] On document pointer recycling

Lex Trotman elextr at xxxxx
Fri Oct 25 03:34:41 UTC 2013


[...]

We could use GHashTable as a Set to contain the documents internally
> afterwards. It doesn't make much sense to have a particular document
> instantiated more than once anyway and the only order we care about for
> documents here is maybe the order/time they were opened, which is better
> solved with a "open timestamp" or something, IMO.
>

The current index does not depend on opening order since it recycles the
document structs, so there can be no dependency on the current order that
makes sense.

What would you use as the key to the hash/set, and why? A simple list or
array is all thats needed to hold pointers to open documents and iterate
them.

Cheers
Lex


>
> My two cents
>
> Cheers,
> Matthew Brush
>
> ______________________________**_________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-**bin/mailman/listinfo/devel<https://lists.geany.org/cgi-bin/mailman/listinfo/devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20131025/8e9e30ff/attachment.html>


More information about the Devel mailing list