How to reduce lag

Do not use huge amounts of item frames.

Do not use more hoppers than necessary

Try to avoid constantly running redstone clocks

Do not breed excessive amounts of animals

Make sure your storage system sagely destroys overflow items

If you want to build something laggy, build it in a remote location where it won't be constantly loaded by others