The 335d was too expensive and had 286hp vs the new updated 330d with 245hp...
After some years both engines were updated again 35d version for two times (1st version with 300/ 306 hp and after that with 313hp) and 30d engine upgraded to 258hp...
In this moment the best diesel alternative is 320d (184hp)... For 5 series the 525d (218hp) is better due to a higher weight