check bounds rather than generate exceptions#373
check bounds rather than generate exceptions#373bruce-lindsay wants to merge 1 commit intoThatRendle:masterfrom bruce-lindsay:exceptional-bounds-checking
Conversation
|
Thanks for this. I will pull and release patched build next time I'm on my Sent using CloudMagic [https://cloudmagic.com/k/d/mailapp?ct=pi&cv=6.0.64&pv=8.1.1] YOU CAN VIEW, COMMENT ON, OR MERGE THIS PULL REQUEST ONLINE AT: COMMIT SUMMARY
FILE CHANGES
PATCH LINKS:
— |
|
Great, glad I could help. Do you know what commit SHA produced 0.19.0 nuget package? I'm currently dependent on that version but not sure what SHA to hotfix this against without introducing other changes. Thanks |
This had a serious performance benefit. In my case (single select fetching 164 records) the catch block for ArgumentOutOfRangeException was hit 432 times. Using an explicit bounds check prevented these exceptions and was noticeably faster