In KeepersConsumer.CHECK_UPKEEP() you pushed four values to the stack, which meant that in PERFROM_UPKEEP, you had to pop three items off to use the time_comparison.
This was unnecessary since only the CHECK_UPKEEP() function uses those values. I pushed them onto the stack inside the CHECK_UPKEEP() function. This means we save at least nine gas in the PERFORM_UPKEEP() function because we got rid of the three pop opcodes.
This makes the code more readable, cleaner, and optimized.
In KeepersConsumer.CHECK_UPKEEP() you pushed four values to the stack, which meant that in PERFROM_UPKEEP, you had to pop three items off to use the time_comparison.
This was unnecessary since only the CHECK_UPKEEP() function uses those values. I pushed them onto the stack inside the CHECK_UPKEEP() function. This means we save at least nine gas in the PERFORM_UPKEEP() function because we got rid of the three pop opcodes.
This makes the code more readable, cleaner, and optimized.