JensUweUlrich / ReadBouncer

Fast and scalable nanopore adaptive sampling
GNU General Public License v3.0
33 stars 2 forks source link

Avoid Exception Handling in performance sensitive code blocks #50

Open JensUweUlrich opened 2 years ago

JensUweUlrich commented 2 years ago

According to Daniel Lemire, exception handling is quite expensive (https://lemire.me/blog/2022/05/13/avoid-exception-throwing-in-performance-sensitive-code/#comments). Thus, we should clean the code and avoid exceptions in all cases except reading and writing files.