checkbox slow motion?

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1098 Views - Last Post: 11 January 2013 - 04:33 AM

#16 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,236
  • Joined: 08-June 10

Re: checkbox slow motion?

Posted 11 January 2013 - 04:23 AM

View Postandrewsw, on 11 January 2013 - 12:04 PM, said:

It even seems that (1234) + '' may even be slower than (1234).toString(), which seems strange.

why should that be strange?
(1234).toString() does two steps:
- coercing the number literal into a Number onbject
- calling .toString()

(1234) + '' does (at least) 3
- coercing the number literal into a Number onbject
- calling .toString()
- make the concatenation
Was This Post Helpful? 0
  • +
  • -

#17 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3480
  • View blog
  • Posts: 11,870
  • Joined: 12-December 12

Re: checkbox slow motion?

Posted 11 January 2013 - 04:33 AM

toString() was faster in Chrome but was slightly slower in IE when I performed brief tests.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2