PCSX2 Documentation/C++ exceptions can be an optimization: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
{{DocTabs|Section=3}}
''Originally written by Jake Stine''
''Originally written by Jake Stine''


Line 67: Line 68:


Edit: I should add that the basic theory of optimization I'm using here is what I call "optimizing for the common case." It's a process of speeding up the code that's being run more frequently (which in our example above is a typically error-free running loop) by offloading the logic to an area of the code that's run much less frequently (the exception handler's entry/exit overhead). It's one of the most powerful optimization techniques any programmer can employ.
Edit: I should add that the basic theory of optimization I'm using here is what I call "optimizing for the common case." It's a process of speeding up the code that's being run more frequently (which in our example above is a typically error-free running loop) by offloading the logic to an area of the code that's run much less frequently (the exception handler's entry/exit overhead). It's one of the most powerful optimization techniques any programmer can employ.
{{PCSX2 Developers Blog Navbox}}
67,565

edits