LearnNewsExamplesServices
Frontmatter
id244
titleNeo.mjs: autoGenerateGetSet() => cache by key name
stateClosed
labels
enhancement
assignees[]
createdAtFeb 24, 2020, 7:33 PM
updatedAtFeb 25, 2020, 1:10 PM
githubUrlhttps://github.com/neomjs/neo/issues/244
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 25, 2020, 1:10 PM

Neo.mjs: autoGenerateGetSet() => cache by key name

tobiu
tobiu commented on Feb 24, 2020, 7:33 PM

"Also, the object that you create in autoGenerateGetSet. It is the same for each key name. The property definition object for property foo in one class will be exactly the same as for another class. These can be cached statically and reused." (Nige, #242)

=> we can create a mapping object for caching

tobiu added the enhancement label on Feb 24, 2020, 7:33 PM
tobiu referenced in commit 7e07079 - "Neo.mjs: autoGenerateGetSet() => cache by key name #244" on Feb 25, 2020, 1:07 PM
tobiu
tobiu Feb 25, 2020, 1:10 PM

Stored inside the symbol Neo[getSetCache] now. There are not many occurrences yet, but this might change as the framework grows (tested it inside the docs app).

tobiu closed this issue on Feb 25, 2020, 1:10 PM