Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is using instanceof operator in javascript a performance issue?

 
salvin francis
Bartender
Posts: 1274
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have heard that instanceof operator in java is a performance issue,

Is it true for Javascript too (IE6,IE7,IE8,FF,Chrome,safari,etc.)? any links to authentic papers would be helpful.
I Need to know this from knowledge point of view.


for reference, I have also posted this same question at another forum:
http://stackoverflow.com/questions/1978663/is-using-instanceof-operator-in-javascript-a-performance-issue
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really doubt you're going to find "authentic papers" on instanceof performance in JavaScript. And I agree with everything that has been said on the StackOverflow site.
 
salvin francis
Bartender
Posts: 1274
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deja vu

 
salvin francis
Bartender
Posts: 1274
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
salvin francis wrote:I really do honor the comments here, but, I see most of you guys are not that keen in answering the question.I am asking this from knowledge point of view not a project point of view.

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is stopping you from running your own tests?

Eric
 
salvin francis
Bartender
Posts: 1274
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:What is stopping you from running your own tests?

Nothing.


I will post results of my tests here soon.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic