How do you speed up a well-built website

Hugo builds it locally, pushes it to GitHub, and builds it with Netlify.However, in the final website built by Netlify, the search function I set has been slow. How can I speed it up?

That’s a really broad question. Can we see your search implementation?