Re: Cookie problem! Getting error when passing the expire date.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Cookie problem! Getting error when passing the expire date.

From: Lasse Reichstein Nielsen <lrn@hotpop.com>
Date: Sun Apr 30 2006 - 23:27:21 CEST

Michael Winter <m.winter@blueyonder.co.uk> writes:

> The Number and Boolean constructor functions are typically less
> efficient than the equivalent operator sequences (unary plus [+] and
> logical NOT [!], respectively).

(that would be double-not [!!])
The performance might be very slightly better for operators that doesn't
do anything except type convert their arguments, than for function calls
that then do the same.

On the other hand, a large number of type conversions inside a tight
loop does sound like something that should be recoded, and outside
of such a loop, the performance difference is too small to measure.

I personally find the conversion functions easier to read than the
operators, which is another measure to choose by :)

/L

-- 
Lasse Reichstein Nielsen  -  lrn@hotpop.com
 DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
  'Faith without judgement merely degrades the spirit divine.'
Received on Mon May 1 05:28:23 2006