Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #38198

Re: Search array of objects

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Search array of objects
Date 2020-02-25 09:24 +0100
Organization PointedEars Software (PES)
Message-ID <71941385.tmnMnQKSv1@PointedEars.de> (permalink)
References <i_adnaLrBajpv87DnZ2dnUU7-KfNnZ2d@westnet.com.au> <o8adnRKpOaYkoM7DnZ2dnUU7-XnNnZ2d@westnet.com.au> <2373271.grBdAzqF5M@PointedEars.de> <cj585fl41ik599k3bl7v54hc8q4ldjt5j1@4ax.com>

Show all headers | View raw


John G Harris wrote:

> On Mon, 24 Feb 2020 12:23:05 +0100, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> wrote:
>>Andrew Poulos wrote:
>>> On 24/02/2020 12:10 pm, Andrew Poulos wrote:
>>>> I have an array of 50+ arrays each containing 300+ objects as elements.
>>
>>Technically it is not actually containing the objects, but just the
>>references to them.  You can use that to your advantage (see below).
>   <snip>
> 
> Please note that Thomas is talking here about his favourite
> implementation of ECMAScript.

Nonsense.  John G Harris still does not get it, and he is just trolling.
He does not even know what my favorite ECMAScript implementation is.

> He is not talking about a required feature of *every* implementation,
> as the Standard makes clear.

No Edition of the ECMAScript Language Specification makes any statement or 
places any requirements as to how objects are to be implemented in memory.

However, it is unreasonable to assume that an implementation would allocate 
twice the amount of memory to hold two objects with identical data content, 
and would on access copying data from one memory area to another when 
storing and dereferencing memory pointers would be more efficient.

One would wish that one would not have to teach simple logic like this to
John G Harris over and over again.

-- 
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


Thread

Search array of objects Andrew Poulos <ap_prog@hotmail.com> - 2020-02-24 12:10 +1100
  Re: Search array of objects Andrew Poulos <ap_prog@hotmail.com> - 2020-02-24 14:06 +1100
    Re: Search array of objects luserdroog <luser.droog@gmail.com> - 2020-02-23 21:33 -0800
    Re: Search array of objects Julio Di Egidio <julio@diegidio.name> - 2020-02-24 02:02 -0800
    Re: Search array of objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-24 12:23 +0100
      Re: Search array of objects John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-24 18:31 +0000
        Re: Search array of objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-25 09:24 +0100
          Re: Search array of objects John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-25 11:40 +0000
            Re: Search array of objects Julio Di Egidio <julio@diegidio.name> - 2020-02-25 03:57 -0800
            Re: Search array of objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-25 19:02 +0100
              Re: Search array of objects John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-25 19:18 +0000
                Re: Search array of objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-25 21:51 +0100
                Re: Search array of objects John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-26 16:09 +0000
            Re: Search array of objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-25 19:09 +0100
              Re: Search array of objects "Mark-" <nospam@mapson.xyz> - 2020-02-25 19:18 +0000
                Re: Search array of objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-25 21:58 +0100
                Re: Search array of objects John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-26 16:09 +0000
              Re: Search array of objects John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-25 19:47 +0000

csiph-web