Closed Bug 1377339 Opened 8 years ago Closed 2 years ago

obj_toString() called from isDate() in Angular could be faster

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED WORKSFORME
Performance Impact low
Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: ehsan.akhgari, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Profile: http://bit.ly/2tq8t6r from Jan: ehsan: isDate is just -- return toString.call(value) === '[object Date]' -- I wonder if we could optimize that better in Ion, will think about it
I'll check what kind of type information we have for |value|... When there's a single Class we could use TI to optimize (just need to be careful with @@toStringTag..). Worst case we could call a VM function and avoid some of the type checks at the start of obj_toString.
Flags: needinfo?(jdemooij)
Depends on: 1385215
(In reply to :Ehsan Akhgari (needinfo please, extremely long backlog) from comment #2) > I don't see this in profiles any more: https://perfht.ml/2i74Rlx > > Could it be that something changed to fix it? Can we close the bug? No, I'm just incompetent at using the profiler UI: https://perfht.ml/2fLDbBL Sorry for the noise...
(In reply to :Ehsan Akhgari (needinfo please, extremely long backlog) from comment #3) > No, I'm just incompetent at using the profiler UI: https://perfht.ml/2fLDbBL > Sorry for the noise... Note that this profile is for Ember, not Angular, and the Ember case is bug 1384562. I should probably get back to that :)
Flags: needinfo?(jdemooij)
Keywords: perf
Priority: -- → P3
Whiteboard: [qf:p3]
Performance Impact: --- → P3
Whiteboard: [qf:p3]
Severity: normal → S3

I'm not seeing this behaviour any more.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Resolution: INVALID → WORKSFORME
You need to log in before you can comment on or make changes to this bug.