R
roberts.noah
Scott Myers discusses the 'costs' of exceptions even when not being
used vs. when you have a try/catch block vs. when you have to throw an
exception. He leads you to believe that these costs are quite
significant with a 10% increase in code size and slow down just by
having the capability to use exceptions. He admits to not really
having any concrete data for this but he still asserts pretty strongly
that exceptions have a rather high cost.
But this book (More Effective C++) was written several years ago. Is
there a better understanding now? Do exceptions really cost that much
when they are not fired? I did some google searching but haven't come
up with much.
used vs. when you have a try/catch block vs. when you have to throw an
exception. He leads you to believe that these costs are quite
significant with a 10% increase in code size and slow down just by
having the capability to use exceptions. He admits to not really
having any concrete data for this but he still asserts pretty strongly
that exceptions have a rather high cost.
But this book (More Effective C++) was written several years ago. Is
there a better understanding now? Do exceptions really cost that much
when they are not fired? I did some google searching but haven't come
up with much.