Xerces-C thows EntOfEntity to parse XML that contains "XML entities". So, if you use them in your XML (and you do, don't you?) there are many exceptions thrown and caught under the hood. Or nur "under the hood" -- in MS Dev Studio's debugger you get a popup.
- installing exceptions (having a `try-except`-clause in you program) is usually fast, it takes near-to-no time. If no exception is thrown it is probably just an additional pointer pushed on a stack.
- but if an exception is thrown there is a lot of work involved. (Want details? let me know.)
- therefore throwing exceptions on aregular basis is time consuming and hurts performance.
- to figure out the control flow through
throw-catchstatements is also not an easy task and there is probably -- no, surely -- a better way to do it.
No comments:
Post a Comment