Article View: pl.comp.lang.javascript
Article #50990Re: Funkcja korzystająca z instrukcji switch
From: Cezary Tomczyk
Date: Mon, 23 Jan 2012 10:51
Date: Mon, 23 Jan 2012 10:51
12 lines
1625 bytes
1625 bytes
W dniu 2012-01-23 09:21, NKAB - pisze: [...] A ja dodam tylko tyle, że można sobie przetestować szybkość switch-a, if-a i ternary: http://jsperf.com/ternary-vs-if-vs-switch Ogólnie mi wyszło, że switch jest najwolniejszy :/ -- Cezary Tomczyk
Technical Details
Message-ID:
<jfje3o$q98$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<a06e9e8f-2ae6-41a8-b804-31e3ef49e304@d10g2000vbh.googlegroups.com> <jeebqu$2r0$1@inews.gazeta.pl> <jel0oj$hbq$1@news.icm.edu.pl> <jeouk7$1m$1@inews.gazeta.pl> <jep6t6$ges$1@mx1.internetia.pl> <jepa9c$hn4$1@news.icm.edu.pl> <jf0lrh$2k0$1@inews.gazeta.pl> <jf0ucr$gs4$1@mx1.internetia.pl> <jf39d9$mf$1@inews.gazeta.pl> <jf49km$jko$1@news.icm.edu.pl> <jf625l$s3j$1@inews.gazeta.pl> <jf6c82$uhd$1@news.icm.edu.pl> <jfbcg2$evr$1@inews.gazeta.pl> <jfbl07$3r5$1@news.icm.edu.pl> <jfj59n$sir$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Cezary Tomczyk <ctomczyk.pl@gazeta.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: Funkcja korzystająca z instrukcji switch Date: Mon, 23 Jan 2012 11:51:39 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 12 Message-ID: <jfje3o$q98$1@inews.gazeta.pl> References: <a06e9e8f-2ae6-41a8-b804-31e3ef49e304@d10g2000vbh.googlegroups.com> <jeebqu$2r0$1@inews.gazeta.pl> <jel0oj$hbq$1@news.icm.edu.pl> <jeouk7$1m$1@inews.gazeta.pl> <jep6t6$ges$1@mx1.internetia.pl> <jepa9c$hn4$1@news.icm.edu.pl> <jf0lrh$2k0$1@inews.gazeta.pl> <jf0ucr$gs4$1@mx1.internetia.pl> <jf39d9$mf$1@inews.gazeta.pl> <jf49km$jko$1@news.icm.edu.pl> <jf625l$s3j$1@inews.gazeta.pl> <jf6c82$uhd$1@news.icm.edu.pl> <jfbcg2$evr$1@inews.gazeta.pl> <jfbl07$3r5$1@news.icm.edu.pl> <jfj59n$sir$1@inews.gazeta.pl> NNTP-Posting-Host: 83-168-101-54.static.espol.com.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1327315896 26920 83.168.101.54 (23 Jan 2012 10:51:36 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Mon, 23 Jan 2012 10:51:36 +0000 (UTC) X-User: ctomczyk.pl In-Reply-To: <jfj59n$sir$1@inews.gazeta.pl> User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit