2011-06-10 19:07:35 |
Eike |
description |
The compiler currently uses exceptions extensively as a mechanism for information transport. In fact an exception is raised for each function call that goes to the code generator. So raising exceptions is not an exception but the norm.
Therefore test the speed of raising and catching exceptions in comparison to "if" statements. If exceptions are much slower than "if" statements, then the code should be restructured. |
The compiler currently uses exceptions extensively as a mechanism for information transport. In fact an exception is raised for each function call that goes to the code generator. So raising exceptions is not an exception but the norm.
Therefore test the speed of raising and catching exceptions in comparison to "if" statements. If exceptions are much slower than "if" statements, then the code should be restructured.
https://sourceforge.net/apps/trac/freeode/ticket/26 |
|