https://bugzilla.wikimedia.org/show_bug.cgi?id=72933

            Bug ID: 72933
           Summary: v8 warns it won't optimize oo.Factory.create or
                    oo.EventEmitter.emit
           Product: OOjs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: performance
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

To reproduce:

- Navigate to an article
- Open Chrome's Developer Tools
- Click 'Profiles'
- Select 'Collect JavaScript CPU Profile'
- Click 'Start'
- Click 'Edit [beta]'
- Wait for VisualEditor to finish loading
- Click 'Stop'

Result:

Both oo.Factory.create or oo.EventEmitter.emit are flagged by the profiler with
the warning: "Not optimized: Inlining bailed out."

To investigate, I recommend reading
<https://github.com/GoogleChrome/devtools-docs/issues/53>

v8 comes with a 'd8' executable that can be used for getting some performance
debug info from v8. If you can craft a file that utilizes these functions
without depending on the DOM API, you can try running it with:

> d8 --trace-opt --trace-bailout some-js-file.js

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to