[Geany-devel] Changing from scintilla to gtksourceview or scintilla over gtksourceview

Enrico Tröger enrico.troeger at xxxxx
Thu Dec 31 16:07:02 UTC 2009


On Wed, 30 Dec 2009 02:40:06 +0300, Денис wrote:

>>That's not to say Scintilla is inherently slower than GtkSourceView
>I dunno. I hear about slow perfomance of scintilla, but, at this time,
>it isn't problem and not a first problem of it.

Except for the already mentioned scrolling issues, I've never had
problems with Scintilla's performance. But to be fair, I have quite
good hardware so it might be I just don't notice it. Though this can be
never an excuse for not optimizing code to its maximum (The
application seems slow? Buy better hardware! haha).


>>This feature has been on Scintilla's radar for quite a while, but not
>>much
>has happened with it yet.
>Scintilla API documentstion and comments are pretty bad. Scintilla

That's not true, at least you can't say this objectively. Scintilla's
documentation is different and in a maybe non-common format (not
doxygen, not gtk-doc) but it's good enough to work with. Even without
being god/devil/whatever :).
If *you* don't like it, it's your personal opinion which is fully ok.
But I wouldn't consider this an argument to change the editing
component in Geany :).


>have many features, but for using of its, need to be god/devil/evil of
>coding. Really. I've talked with one developer, who uses scintilla for
>parsing of mixed sources. He said that this feature not too hard, but
>need to have big knowlege about scintilla. Yes, i don't think that
>this reasonable, spend time to explore this code. Instead, we can use
>gtksourceview with it's documentation and easy-to-use functionality.

Hmmm.
Since GtkSourceView uses a GtkSourceBuffer which is a subclass of a
GtkTextBuffer, all its operations are based on GtkTextIters. I
personally find iters more difficult to use than plain text positions
which Scintilla does. Not that iters aren't good, they have big
advantages over plain positions but still don't make it more easy to
use. But again, this is quite a personal point of view.
What I want to say is, saying the one or the other engine is
better/worse than the other just because it's "easier" to use, is
very subjective.
Once you got familiar with the Scintilla API, it isn't that hard to use
anymore and also not that strange anymore. And this is probably true
for anything else which is different in some way :).

Happy new year,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20091231/0538fb77/attachment.pgp>


More information about the Devel mailing list