Home Download Buy Blog Forum Support

Plugin Api: on_modified should receive diffs

Plugin Api: on_modified should receive diffs

Postby ajpalkovic on Thu Sep 22, 2011 6:26 pm

Plugins could be made a lot faster if they new what changed in a file. For instance, if I have a plugin that needs to process parts of a file, I can cache that. But if the text changes, I need to reparse the text. Right now, I cannot tell what changed, so I have to reparse everything. If a plugin could hook an event that passes in like insert, 5, 10 to say the user inserted 5 character at character 10 for instance, then rather than reparsing the whole document, I could do just that line. Heck, even just saying what line were modified would be good enough. I dunno, I think a lot of plugins could be better and faster with that, (although more complex as well).
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Plugin Api: on_modified should receive diffs

Postby adzenith on Thu Sep 22, 2011 8:00 pm

Jon said a while ago that this wouldn't happen until version 3:
viewtopic.php?f=6&t=1584&p=7325
On the other hand, he said the same thing about code folding! So... fingers crossed!

See also this: viewtopic.php?f=3&t=1645&p=7530
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Plugin Api: on_modified should receive diffs

Postby ajpalkovic on Thu Sep 22, 2011 8:15 pm

Interesting, yea, it just bugs me when I see stuff that could be so much faster, but isn't.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests