O
optimistx
As an exercise a wrote a little js-program to generate statistical data
with random number generators, not much dom-manipulation.
I tried to write the program so that I would now and later
understand what the program tries to do. Simple coding,
short methods, no optimizing for speed or 'efficiency'.
It was fun to write code especially when sometimes I understood
what I was doing.
Examples of the relative execution times were:
ie7 : 27,7 seconds
ff3.5.5: 2,3 seconds
chrome: 0,7 seconds
After that I started to make the program 'efficient' by following some
of the advice I had got (sources censored). The program became
more difficult to read, uglier, longer, more error prone.
But I succeeded to save 0.001 seconds from the execution time.
I felt a real hero. Happy to spend an efficient Christmas now.
Efficient Christmas to everyone. Try to squeeze it 0.1 seconds shorter.
with random number generators, not much dom-manipulation.
I tried to write the program so that I would now and later
understand what the program tries to do. Simple coding,
short methods, no optimizing for speed or 'efficiency'.
It was fun to write code especially when sometimes I understood
what I was doing.
Examples of the relative execution times were:
ie7 : 27,7 seconds
ff3.5.5: 2,3 seconds
chrome: 0,7 seconds
After that I started to make the program 'efficient' by following some
of the advice I had got (sources censored). The program became
more difficult to read, uglier, longer, more error prone.
But I succeeded to save 0.001 seconds from the execution time.
I felt a real hero. Happy to spend an efficient Christmas now.
Efficient Christmas to everyone. Try to squeeze it 0.1 seconds shorter.