[Webkit-unassigned] [Bug 118827] [gstreamer] Avoid calls to g_slist_index in webKitWebAudioSrcLoop()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 17 20:24:31 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=118827





--- Comment #1 from Nick Diego Yamane (diegoyam) <nick.yamane at openbossa.org>  2013-07-17 20:24:28 PST ---
webKitWebAudioSrcLoop() currently calls g_slist_index for each element to get its index in a list it's iterating over. g_list_index function uses a sequential search to find that element, which is clearly unecessary. This patch adds a local variable to store the current index and use it instead of calling g_slist_index funtion.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list