I noticed you were using script.on_event(defines.events.on_tick, landfill_check) with if event.tick % (1000) == 0 then
this calculation is much more efficient if you use script.on_nth_tick(1000, landfill_check)