comunica icon indicating copy to clipboard operation
comunica copied to clipboard

Use Object.preventExtensions

Open rubensworks opened this issue 6 years ago • 2 comments

Issue type:

  • :heavy_plus_sign: Feature request

Description:

Object.preventExtensions may give us some minor performance boost.

Some places we could use it:

  • Bindings (they are currently immutables, but these don't use this feature yet it seems: https://github.com/immutable-js/immutable-js/pull/1544)
  • RDFJS quads and terms (will need to be done in data factories: https://github.com/rdfjs-base/data-model)

rubensworks avatar Sep 16 '19 13:09 rubensworks

Hey there, Can I work on this issue ?

jatinAroraGit avatar Sep 26 '19 23:09 jatinAroraGit

Certainly! Be sure to let me know if you need any help.

rubensworks avatar Sep 27 '19 06:09 rubensworks

Since JS engines currently do not optimize frozen objects, there's no reason to implement this.

rubensworks avatar May 22 '24 17:05 rubensworks