Join us

Keep Calm And Panic

Keep Calm And Panic

The article discusses how panic/recover workflows can improve performance and code organization for an engine's validation rules.

The authors benchmarked the go-mysql-server validation rules with error passing compared to a panic/recover workflow and found that panicking is 20-40% faster for small well-formed queries.

However, it is recommended to use errors for interfaces and reserve panics for sections of code where errors have no impact on the intervening logic.


Only registered users can post comments. Please, login or signup.

Start blogging about your favorite technologies, reach more readers and earn rewards!

Join other developers and claim your FAUN account now!

Avatar

The FAUN

@faun
A worldwide community of developers and DevOps enthusiasts!
User Popularity
3k

Influence

281k

Total Hits

1

Posts