Ryzen is ~50% faster clock-for-clock compared to FX CPUs with the same core count, which makes it far more "optimized" than the FX ever were.
What needs optimization is software and the FX series suffered from poor software optimization for the first many years of their existence. Ryzen being far superior to FX made the day-one handicaps more manageable.
Ryzen's main struggle at launch was (and still is) memory compatibility, especially on boards that haven't been updated with 1.0.0.6 or newer.