Bug 132314

Summary: Simplify tryCacheGetById
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
oliver: review+
Perf results none

Description Mark Hahnenberg 2014-04-28 17:38:43 PDT
There's some duplicate logic between tryCacheGetById and tryBuildGetByIDList. We should just do self caching in tryCacheGetById, and if we fail then we should try calling tryBuildGetByIDList before giving up.
Comment 1 Mark Hahnenberg 2014-04-28 17:40:49 PDT
Created attachment 230342 [details]
Patch
Comment 2 Filip Pizlo 2014-04-28 18:58:41 PDT
Comment on attachment 230342 [details]
Patch

R=me too, what is the perf impact?
Comment 3 Mark Hahnenberg 2014-04-28 19:02:32 PDT
Created attachment 230350 [details]
Perf results

Here's the results. Neutral. I re-ran sun spider with inner, outer = 8, 8, and it looked like a small progression ~0.5%.
Comment 4 Filip Pizlo 2014-04-28 19:30:58 PDT
(In reply to comment #3)
> Created an attachment (id=230350) [details]
> Perf results
> 
> Here's the results. Neutral. I re-ran sun spider with inner, outer = 8, 8, and it looked like a small progression ~0.5%.

Yeah that looks pretty good!
Comment 5 Filip Pizlo 2014-04-28 19:31:14 PDT
(In reply to comment #4)
> (In reply to comment #3)
> > Created an attachment (id=230350) [details] [details]
> > Perf results
> > 
> > Here's the results. Neutral. I re-ran sun spider with inner, outer = 8, 8, and it looked like a small progression ~0.5%.
> 
> Yeah that looks pretty good!

Wait ... did you enable FTL in that run?
Comment 6 Mark Hahnenberg 2014-04-28 19:47:59 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > Created an attachment (id=230350) [details] [details] [details]
> > > Perf results
> > > 
> > > Here's the results. Neutral. I re-ran sun spider with inner, outer = 8, 8, and it looked like a small progression ~0.5%.
> > 
> > Yeah that looks pretty good!
> 
> Wait ... did you enable FTL in that run?

Yep. I ran with the same flags and only added the "--sunspider --inner 8 --outer 8" before the VMs. Why?
Comment 7 Filip Pizlo 2014-04-28 20:06:11 PDT
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > Created an attachment (id=230350) [details] [details] [details] [details]
> > > > Perf results
> > > > 
> > > > Here's the results. Neutral. I re-ran sun spider with inner, outer = 8, 8, and it looked like a small progression ~0.5%.
> > > 
> > > Yeah that looks pretty good!
> > 
> > Wait ... did you enable FTL in that run?
> 
> Yep. I ran with the same flags and only added the "--sunspider --inner 8 --outer 8" before the VMs. Why?

Just checking how you built since FTL is disabled by default on most OSes.
Comment 8 Mark Hahnenberg 2014-04-28 20:11:25 PDT
Committed r167922: <http://trac.webkit.org/changeset/167922>