Puisque squalyl n'a pas l'air convaincu, histoire d'apporter quelques justifications à ce que je disais en
./17 :
- Les exceptions en Java sont lentes :
http://blog.developpez.com/adiguba/p1075/java/perfs/exception-et-performances/- Les préconisations de MS pour C# :
http://msdn.microsoft.com/en-us/library/ms229009.aspxEntre autres :
MSDN:
Consider the TryParse pattern for members that may throw exceptions in common scenarios to avoid performance problems related to exceptions.