script.on_nth_tick(60, function(event)
for _s, s in pairs(game.surfaces) do
for _n, n in pairs(s.find_entities_filtered{
name="fish-net",
type="container"
}) do
You are scanning every second every surface, searching on whole surface your container, for every container will be another locale searching.
Do you want to optimize it?