Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39561
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Picture colors decreasing script. |
| Date | 2021-03-03 21:53 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1775923.tdWV9SEqCh@PointedEars.de> (permalink) |
| References | (3 earlier) <52708860-8e17-4136-b79d-f76002425ce2n@googlegroups.com> <5689266.lOV4Wx5bFT@PointedEars.de> <ae17e712-ed89-4b7c-9a6e-c4d2d224bbb2n@googlegroups.com> <2188480.ElGaqSPkdT@PointedEars.de> <663d9d05-08a6-4593-883e-0b68f64a2c93n@googlegroups.com> |
Michael Haufe (TNO) wrote: > On Wednesday, March 3, 2021 at 2:33:42 PM UTC-6, Thomas 'PointedEars' Lahn > wrote: >> Michael Haufe (TNO) wrote: >> > On Wednesday, March 3, 2021 at 12:47:12 PM UTC-6, Thomas 'PointedEars' >> > Lahn wrote: >> >> What is the functional difference between your code and mine? >> > >> > You're calling slice obviously. If you mean what's the semantic >> > difference: nothing. It's the same. >> No, I was asking about the *functional* difference. >> > What matters more in this context would be performance. >> Why do you think that .slice() would perform worse than accessing >> individual consecutive items directly? > > I don't think, I know. You left out the relevant link in your quote: > > <https://jsbench.me/ulkltk1xpk> Fascinating; slicing is 93.08 % slower than direct access. But why? -- PointedEars FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Picture colors decreasing script. Kristjan Robam <kristjanrobam01@mail.ee> - 2021-02-28 22:33 -0800
Re: Picture colors decreasing script. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-01 11:56 -0800
Re: Picture colors decreasing script. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-03-02 13:42 +0100
Re: Picture colors decreasing script. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-03 07:02 -0800
Re: Picture colors decreasing script. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-03-03 19:47 +0100
Re: Picture colors decreasing script. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-03 11:37 -0800
Re: Picture colors decreasing script. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-03-03 21:33 +0100
Re: Picture colors decreasing script. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-03 12:38 -0800
Re: Picture colors decreasing script. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-03-03 21:53 +0100
Re: Picture colors decreasing script. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-03-03 16:36 -0800
Re: Picture colors decreasing script. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-03-04 02:07 +0000
Re: Picture colors decreasing script. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-03-04 09:40 +0000
csiph-web