It depends upon what you're doing. Sun Tzu remarked that excessive compassion could be a fatal flaw in a General (alongside being quick to anger, being puritanical, being too determined to live, and being too willing to sacrifice oneself). I would be inclined to agree.
Will true compassion often get in the way of selfish goals? You bet!
Being compassionate often means forgoing one's own pleasure in order to benefit others. Egotistical people will find this horrifying and repugnant.
But it should be remembered that feeling great love and compassion for others can be highly pleasurable itself, and Nirvana is the greatest and most permanent type of happiness a person can have.
The very aspects of Buddhism which people at first glance may find "inconvenient" often lead to the greatest happiness in the long run.
And please note that Sun-Tzu was NOT a Buddhist! You can't lump all Chinese philosophies/religions together. Chinese generals, Taoists, Confucians, and Buddhists have radically different ideas about the nature of life and reality.
"The Art of War" is perhaps one of the LEAST Buddhist books you could ever read. Try finding something which is more about "The Art of Peace"...