On Sep 22, 9:24*am, "optimistx" <optimistxPoi.. .@poistahotmail .com>
wrote:
If the page loading takes 5 000 000 microseconds, is there any sense
to write about saving 1 microsecond?
There may be. Many of my pages call little or no JavaScript during
load, but use input type=text to set up a calculation and input
type=button to start it. The ange of times that the calculation is
expected to take is from "too fast to see" to *millennia*. Somewhere
in between, speed matters.
You may wonder why there should be code that takes millennia. The
answer is that in a good browser it takes millennia, in a bad one a
few minutes. In this specific case, IE and Firefox are good, Chrome
is bad, Opera and Safari are not so bad, and are expected to take
hours. See js-randm.htm "Repeat Interval".
Verifying the Date of Easter or ISO Week Numbers, each over the full
repeat range, provide other examples where computation speed matters.
--
(c) John Stockton, near London, UK. Posting with Google.
Mail: J.R.""""""""@ph ysics.org or (better) via Home Page at
Web: <URL:http://www.merlyn.demo n.co.uk/>
FAQish topics, acronyms, links, etc.; Date, Delphi,
JavaScript, .....|