Hi! I'm a fellow modder.
A player sent me his save (Factorio 2.1.24, 244 mods, nauvis 25,447 chunks / 488,800 entities, a second planet with 223,835 entities) and told me he was having some lag spikes. I had a look at his save and did some benchmarking and noticed some of the lag was coming from this mod. I had a look at the code and noticed something that could use a bit of improvement performance-wise.
The on_nth_tick(600) handler at control.lua:1473 (reconcile, :1425) takes 63 to 68 ms every 10 seconds, which he feels as a hitch. The save has no melta turrets at all, so the whole cost is find_entities_filtered{name = "melta-turret"} with no area on every surface: on a map this size the engine walks the whole surface whatever the turret count (about 40 ms on nauvis and 15 ms on the second planet for basically no findings).
Without the mod that tick goes from about 94 ms to about 30 ms. I would suggest the following: rely on the build/remove events (plus on_space_platform_built_entity and register_on_object_destroyed), run reconcile once in on_configuration_changed, or spread it over many ticks (a surface or an area slice a tick).
I know how difficult optimizing a mod is, especially for endgame... I really hope this helps! Have a nice weekend!