Book a Demo

Author Topic: Speed differences between scripting languages  (Read 5313 times)

kjourdan

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Speed differences between scripting languages
« on: June 11, 2016, 12:47:20 am »
Has anyone looked at the speed differences of the scripting languages (JScript, VB, JavaScript)? I have some scripts that are currently taking 45 minutes to run. Curious if using VB or JavaScript instead of JScript would have led to a performance difference?  Thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Speed differences between scripting languages
« Reply #1 on: June 11, 2016, 02:17:11 am »
I'm only using VBScript for my scripts, so I don't have a any experience with any other scripting languages.

What are you doing that takes 45 minutes?
Surely there must be other performance improvements you can do other then changing the language.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Speed differences between scripting languages
« Reply #2 on: June 11, 2016, 04:15:04 am »
It will most likely not make much difference. Often your code can be optimized e.g. by intelligent use of hashes instead of linear searches (provided the scripting language offers that). Anyhow, if the 45 minutes saves you hours of manual work you are on the sunny side already. If you need to run those 45 minutes every hour or so you should probably think of coding it in a compilable language.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Speed differences between scripting languages
« Reply #3 on: June 11, 2016, 04:20:08 am »
Even if the collection type is not available in the scripting language you can still use some of the .net collections such as ArrayList in your scripts. As long as they don't use generics you are usually safe.

Geert