Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128287

Non-conforming complexity of Map / Set in Javascript

    XMLWordPrintable

Details

    Description

      https://tc39.es/ecma262/multipage/keyed-collections.html#sec-map-objects says

      "Maps must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements in the collection. "

      However the implementation in Qt is linear, with a comment (from 2018) in qv4estable.cpp saying that it will be made faster "later".

      This never happened, and it's not a nice-to-have — it's a specification requirement.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              diseraluca Luca Di Sera
              peppe Giuseppe D'Angelo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes