[Webkit-unassigned] [Bug 160799] Replace % by bitwise &

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 12 09:45:20 PDT 2016


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

--- Comment #5 from Rajeev Misra <rajeevmisraforapple at gmail.com> ---
Comment on attachment 285899
  --> https://bugs.webkit.org/attachment.cgi?id=285899
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285899&action=review

> Source/WTF/ChangeLog:9
> +        If we make size of HashTable as power

I tried to run TestWTF with "/usr/bin/time" to measure usr/sys/real times, but variation for 
different test runs made me conclude that it is not the reliable way to measure performance.  
This variation is probably because tests in TestWTF depends on scheduling order of different 
threads which might be different in each run. 

Is there any official tool/tests/process to measure performance in webkit?

I am not sure if there will be a immediate measurable performance improvement with 
this single change. 

This change was done with the thought that "If same result can be achieved with lesser 
cpu cycle, we should use that approach".  I am guessing division by "power of 2 number" 
done thru & uses lesser cpu cycle than division by some arbitrary number.

I think these smaller improvements could slowly adds up to give us better performance 
over time.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160812/618c86dc/attachment.html>


More information about the webkit-unassigned mailing list