[Github-comments] [geany/geany] Don't require plugin key group name and label strings to be static (#1126)

Colomban Wendling notifications at xxxxx
Fri Jul 8 22:19:13 UTC 2016


If we duplicate core names and labels, it would lead to a minimum additional memory usage of 313 bytes (in 34 blocks) for groups and 6626 bytes (in 294 blocks) for items.  If we assume a `sizeof(size_t)` overhead per block (which is possibly exaggerated) it goes to 585 and 8978 bytes respectively.  This makes it about 10kb overhead.
In comparison, running Geany with a few small files open seem to use about ~60M.

I don't mind either way, but I like prettier code with less gotchas.  I'll however commit a current-ish version of this for the moment, but I'd happily merge a full-copy cleanup for both groups and items post-1.28.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1126#issuecomment-231486313
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160708/732f97fb/attachment.html>


More information about the Github-comments mailing list