<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 April 2013 03:19, Dimitar Zhekov <span dir="ltr"><<a href="mailto:dimitar.zhekov@gmail.com" target="_blank">dimitar.zhekov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 11 Apr 2013 07:49:41 +1000<br>
Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br>
<br>
[...]<br>
<br>
On Thu, 11 Apr 2013 12:56:22 +0100<br>
William Fraser <<a href="mailto:william.fraser@virgin.net">william.fraser@virgin.net</a>> wrote:<br>
<br>
[...]<br>
<br>
Let me confirm. You haven't checked the total resource usage, because<br>
you expect that a plugin will allocate a resource the first time it<br>
needs it, and release the resource as soon as it doesn't need it any<br>
more (as opposed to, say, reserving a resource based on the file<br>
type). Thus it's reasonable to expect that per-sci allocation will<br>
considerably the improve resource usage. Am I correct?..<br>
<br>
--<br>
<br>
For the record:<br>
<br>
marker usage:<br>
  scintilla:            25..31, folding<br>
  geany highlighting:   0 (goto line), 1 (bookmark)<br>
  debugger:             12..17<br>
  numbered bookmarks:   dynamic #s, 10 markers<br>
  scope:                17..19, configurable<br>
<br>
maximum marker usage:   25 / 22 (debugger / scope)<br>
geany/scintilla:        9<br>
available to plugins:   23<br>
used by plugins:        16 / 13 (70% or 55%)<br>
fully available:        7 / 10<br>
fastest resolution:     numberedbookmarks -> 2..11, scope -> 12..14<br>
<br>
[debugger and scope will never be used together]<br>
<br>
indicators:<br>
  scintilla:   none (0..2 defined)<br>
  geany:       0 (GEANY_INDICATOR_ERROR), 8 (GEANY_INDICATOR_SEARCH)<br>
  spellcheck:  uses GEANY_INDICATOR_ERROR<br>
<br>
Either I'm missing something big, or we'll never out of these.<br></blockquote><div><br></div><div style>Nothing wrong with your math, but the suggestion was started by talking to someone who is writing *another* plugin that wants to use markers, and the next one etc.</div>
<div style><br></div><div style>Certainly we can be authoritative and assign a range to the current plugins that are in G-P, but thats not all plugins, and how do we manage it?  If someone comes and says "for new_plugin I need 10 markers", we havn't got them if bookmarks and debugger are allowed for.  So we would have to say to users, sorry, you can't run new_plugin and debugger together, or you can't run new_plugin and bookmarks together, and who is going to decide which combinations are allowed?  And anyway which user is going to RTFM where we say what combinations are legal?  So fixed allocations is not the answer.<br>
</div><div style><br></div><div style>Cheers</div><div style>Lex</div><div style><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Other resource types: havent't checked.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
E-gards: Jimmy<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div></div>