chakra-core / chakra-core/ChakraCore

perf: Context independent, shared null && undefined

Open
#3,847 5 comments 0 reactions 0 assignees View on GitHub
Node Performance
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Currently `null` and `undefined` are created per `JavascriptLibrary`.

- We can't compare a `JsVar` to `null` or `undefined` because we don't know its' origin.
- `JsVar` -> ToRecyc..Object -> Compare... is unnecessarily more complicated
- There are some places we know `JsVar` is actually a `Recyc..Object` hence things are easier (this improvement is already merged to master). Yet, those places are very limited

Any objections to making `null`, `undefined` values are allocated per framework only once?

Is there anything else that we could use the same approach?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.