Bug 64404 - Need a way to force functions to be inlined in debug.
Summary: Need a way to force functions to be inlined in debug.
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: David Levin
URL:
Keywords:
Depends on:
Blocks: 31639
  Show dependency treegraph
 
Reported: 2011-07-12 15:51 PDT by David Levin
Modified: 2011-07-20 14:37 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Levin 2011-07-12 15:51:58 PDT
Function calls (in hot code paths) can make the code really slow due to the function call overhead alone but the need to step into these function is minimal.

In order to add useful debug functionality, it would be useful to make these key places faster by forcing the code to be inlined.

Specifically, forcing inlining of wtfThreadData() in currentThread() should allow for currentThread to have comparable speed to isMainThread().
Comment 1 David Levin 2011-07-20 14:37:09 PDT
Actually this isn't needed anymore. I did the necessary speed ups in https://bugs.webkit.org/show_bug.cgi?id=64577 without it.