Side navigation
#14313 closed bug (fixed)
Opened August 29, 2013 02:41AM UTC
Closed September 03, 2013 06:05AM UTC
Last modified January 10, 2014 05:39PM UTC
Optimize jQuery.merge for size
Reported by: | me@ameyms.com | Owned by: | me@ameyms.com |
---|---|---|---|
Priority: | low | Milestone: | 2.1 |
Component: | core | Version: | 2.0.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
- Use
+
operator instead oftypeof === "number"
- Eliminate oldIE specific
else
condition
Attachments (0)
Change History (9)
Changed September 02, 2013 01:37AM UTC by comment:1
component: | unfiled → core |
---|---|
priority: | undecided → low |
status: | new → open |
Changed September 02, 2013 01:38AM UTC by comment:2
owner: | → me@ameyms.com |
---|---|
status: | open → assigned |
Changed September 03, 2013 06:05AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fix #14313: Optimize jQuery.merge for size. Close gh-1344.
Changeset: c75c9a8ebb5d2483daa68bec799e0d770083a811
Changed September 03, 2013 06:05AM UTC by comment:4
Ref #14313: Further code and test improvements
Changeset: f66d53c85643e703a8e37d9ca9375dd386a60cda
Changed September 12, 2013 08:46PM UTC by comment:5
Ref #14313: NaN detection. Close gh-1352.
(cherry picked from commit 0bc0a69026ce4c1ac570a729d3c975a4a55d0ff4)
Changeset: 68213f20bb5d5426f99bafde028ecab601a9d105
Changed September 20, 2013 12:08AM UTC by comment:6
milestone: | None → 2.1 |
---|
Changed October 24, 2013 06:50AM UTC by comment:7
http://jsperf.com/typeof-number-vs-unary-plus/5
Replying to [ticket:14313 me@…]:
- Use+operator instead oftypeof === "number"- Eliminate oldIE specificelsecondition
Changed January 10, 2014 05:14PM UTC by comment:8
I just ran that perf in Chrome 31 and typeof is waaaaay faster (55x to be exact) than the unary version. Is this change definitely worthwhile?
Changed January 10, 2014 05:39PM UTC by comment:9
This is an old closed ticket. If you have a proposed change, please put together a pull request, jsperf, and new ticket.
Related: https://github.com/jquery/jquery/pull/1344