473,586 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

js interprete concept.....

dmjpro
2,476 Top Contributor
if i write ..... in suppose (C)

if(fun_call() == 100 || fun_cal() == 200)
{
//some code
}

then compiler during code generation ... it optimizes ... like

int i = fun_call();
if(i == 100 || i == 200)
{
//some code
}

then the overhead of twice function call removed.....

now my question is....

is this true for JS?????
we know that js interpreted.... .

if i write something like this is JS then is it optimized as in other languages,
or it slows down the executing performance???? ?

i know JS is scripting language .....
i think it is a bad programming practice..... m i right?????

plz help me out ... thanxxxx in advance
Apr 4 '07 #1
2 1075
acoder
16,027 Recognized Expert Moderator MVP
I'm unsure about the inner workings, but I would assume that it could be optimized. There are optimization tools that reduce the size of the code and can improve performance.
Apr 5 '07 #2
dmjpro
2,476 Top Contributor
thnaxx for ur sugggestionssss
Apr 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
2324
by: nop90 | last post by:
Proof of concept: Currently I have a web hosting service and it does support php. Can the following be done in php? Explanations or examples would be appreciated. Create 2 applications, app-1 and app-2 app-1 loops continuosly. Every 1 second the application writes the time of day to a file.
1
3866
by: Dick | last post by:
Before going in to details i like to understand more about concept and design of this database. Most books go directly in to details. Please, can a current admistrator gife me information on this? Thanks in advance, Dick vd Spek email: ds@dds.nl
4
3907
by: jabailo | last post by:
These guys have it going on. They actually use design ideas that Microsoft employees can drool upon. Visual Studio 2010 Concept IDE http://www.codeproject.com/csharp/Concept_IDE.asp "Like a concept car strutting its stuff, the Visual Studio 2010 Concept IDE is packed with over-the-top features and weird ideas. Tame as it may look,...
3
1535
by: Ramza Brown | last post by:
I have this concept I throwing together. It is not professional or anything, just something I thought might be interesting. The concept is business(me) - to - consumer. It is, What did you buy?. You log into this site and describe purchases you might have made over time. It might be simple like: 'Tommy Shirt cost $30' Whatever...you...
0
1156
by: duelearning | last post by:
I do not think that on the current market, or being developed, there is a real concept search tool. The key issue is that nobody has offered a satisfactory answer on what a concept is and its structural formula (Epistemological solution)before any computer programming language is applied. What we have now is just a some kind of "keyword...
7
2939
by: srinivas | last post by:
Hi, I am a asp programmer.I am displaying the db records in the html pages in a web page.I have 500 columns and 1000 rows in that html table.Here i am planning to implement the "MS-Excel Freeze Panes" concept.How to implement this concept in a web page.If any body have the code or good resource please send me. Thanks in Advance
4
1888
by: mohan | last post by:
Hi All, How to implement virtual concept ( dynamic polymorphism ) in c. I guess i should create a void pointer which is pointing to the function. Not clear about this Does anyone have some idea Mohan
1
1744
by: nimrod | last post by:
i have this problem to solve but not sure how to go about it.can anyone help me please. Environment = market Concept one to many each have action buy and action sell When multiple concepts enter the environment and all perform buy and sell actions the demand or supply will drop. This will affect the environment and the environment will...
0
1205
by: ParasakthiGuru | last post by:
hai, i don't know Replication concept if anybody can know that replication concept pls sent to me replication brief tutorials By Guru
2
2711
Subsciber123
by: Subsciber123 | last post by:
I am writing a program to create family trees. It is stable, but I would say that it is still in the pre-alpha stage. Anyway, I would like to be able to export the tree to a concept map. Does anybody know of either a module in python that supports making concept maps or a program that stores its concept maps in an easily duplicable xml format?...
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.