Putting that away in its own separate place in your brain can allow you to hunker down and complete the task at hand. Giving yourself permission to manage your own mental health regardless to the time of day is another healthy advantage to compartmentalization.
Is it unhealthy to compartmentalize?
To compartmentalize means to organize things in your mind so that they are easier to manage. In the case of emotions, this mechanism can quickly take an unhealthy turn if it's not done the right way. Emotions are sensitive, so if you mess up, you'll do more harm than good.
What does it mean when you compartmentalize things?
Compartmentalization is a defense mechanism in which people mentally separate conflicting thoughts, emotions, or experiences to avoid the discomfort of contradiction.