<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 April 2013 02:25, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Fri, 5 Apr 2013 20:20:55 +1100<br>
Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br>
<br>
> Matthew has pointed out on IRC that the markers and indicators are per<br>
> scintilla object, not global.  He has a suggested alternative API which he<br>
> will post after its tested.<br>
<br>
</div><div class="im">On Tue, 9 Apr 2013 23:20:16 +0100<br>
WILLIAM FRASER <<a href="mailto:william.fraser@virgin.net">william.fraser@virgin.net</a>> wrote:<br>
<br>
> What do people think about these options? Does anyone have any other ideas?<br>
<br>
</div>This was discussed before. At that time Lex was agains global resource<br>
mapping and wanted per-sci resource allocation instead. I will only<br>
repeat my suggestions:<br>
<br>
1. Check how many resources we are using. If they are below the global<br>
limit or slighly above it, per-sci makes no sense.<br></blockquote><div><br></div><div style>It makes sense when the resource is only available per sci.  </div><div style><br></div><div style>There is no "global" set of markers, just that Geany always set up the same set for its own use in each sci.  </div>
<div style><br></div><div style>Even if a plugin uses the same markers in each sci, regardless of language or other settings, it still has to set them up and release them on each sci.  It is more likely though that a plugin will only use markers on a few sci.  </div>
<div style><br></div><div style>So the plugin will have to be allocating the resource per sci anyway, and it will need to track it, yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
2. If they are above the limit, check how much per-sci will improve<br>
the things. If it's less than, say, 15%, per-sci makes no sense.<br>
<br>
3. If per-sci still seems reasonable, provide some logical to physical<br>
mapping, so that the plugins woudn't need to remember each allocated<br>
resource separately for each sci.<br></blockquote><div><br></div><div style>Unless they are set and forget uses, the plugin still has to remember them to be able to use them.</div><div style><br></div><div style>Cheers</div>
<div style>Lex</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<span class=""><font color="#888888"><br>
--<br>
E-gards: Jimmy<br>
</font></span><div class=""><div class="h5">_______________________________________________<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>