All SSJS is parsed into an AST (abstract syntax tree) at runtime. In other words, your code just remains a String until the exact moment that it is executed, at which point a parser examines that String to syntactically identify what the code contains: which characters denote variables, which are operators, functions, etc.
This is why SSJS is always slower than the directly equivalent Java: if you just write your code in Java to begin with, then it's compiled into bytecode the moment you build your project, but perhaps more importantly, at runtime it doesn't have to "guess" what code to run by parsing a String... it just runs the Java code you already defined.
But if your goal is optimization, you'll gain far more improvement by moving all code from SSJS blocks to bean methods than you will by eschewing the convenience of @Functions in favor of native JavaScript, because even native JavaScript has to be parsed into an AST.
Engineering Students must watch this http://t.co/Fgf0E74L #fb
Here is why vim uses the hjkl keys as arrow keys http://t.co/JPmNJvCB /via @lotussteve #fb
Copyright isn't dead just because we're not willing to let it regulate us http://t.co/1eTkYnkL #fb
ECMAScript 5 introduced strict mode to JavaScript. The intent is to allow developers to opt-in to a “better” version of JavaScript, where some of the most common and egregious errors are handled differently. For a while, I was skeptical, especially with only one browser (Firefox) initially supporting strict mode. Fast forward to today, every major browser supports strict mode in their latest version, including Internet Explorer 10 and Opera 12. It’s time to start using strict mode.
http://t.co/FKEF85fC der braucht keinen ausweis ...
ist das eine grandiose lampe oder nicht? http://t.co/ZnQQaIy3
Very good presentation Femke Goedhart: #BLUG : Get social but not THAT social http://t.co/GTBcXguE
Hier kann jeder etwas gegen das EU-USA Fluggastdaten-Abkommen tun: http://t.co/xn3C9SYl #PNR #Datenschutz
Jedes fünfte High-Tech Unternehmen hat Bewerber wg. dessen Social Media Profils abgelehnt. http://t.co/zjvfEP5j
New Article: IBM Tivoli Directory Integrator solutions for IBM #Connections real-world scenarios. http://t.co/C49POuaB #icsedu