I thought about that, but i'd rather not reprocess the diff every time. Anyway, for the record, it is part of the ST python version.
Well yes from what i gathered it seems to happen on every event. But that's not likely a big problem because i can always aggregate such events and do processing only every X events, or in an helper thread.
Why ? From what i've seen, on_modified events are also sent when an undo or a redo are done. I don't need to track wether they are undos/redos or not, just keep a consistent view of the file on the compiler's part.
Thanks for the input !