TRIM is disabled in OS X for third-party SSDs, but with this simple Terminal command, you can enable TRIM for any SSD you have added to your Mac.
Tech Talk: Let Talk TRIM Support on MAC, Good SSD Information
Mac: Enable Native TRIM (via trimforce) for Third Party SSDs
How to enable TRIM on a MacBook Pro, and What is TRIM?
CAUTION! SSD Drives and Yosemite [u]
SSD TRIM on Mac: Disable and Enable SSD TRIM on Mac
OS X 10.10.4 Update Available with Bug Fixes for Wi-Fi & Networking, Photos, Mail
macos - MacBook air's 2017 NVMe SSD Trim Support - Ask Different
Mac 用家福音! OS X 10.10.4 終容許所有SSD 啟動TRIM 功能! - 流動日報
How-To: Now's the right time to swap your old iMac's hard drive for a fast new SSD - 9to5Mac