As a portfolio manager, you are tasked with maintaining the desired asset allocation of your client's portfolio. One of the critical considerations in this process is the impact of transaction costs on trading and rebalancing activities.
Discuss the types of transaction costs that are typically encountered in portfolio management and explain how they can affect the overall performance of a portfolio when rebalancing. Consider both explicit costs and implicit costs in your response.