Skip to content

Conversation

darrnshn
Copy link
Collaborator

Fixes #660 .

Hi @tabatkins PTAL. Not sure how to write it explicitly in the algorithm (how to "cache" it?)

@tabatkins
Copy link
Member

To cache, we specify that Element has a new private slot, and on first call of the method, it stores the object into that slot before returning it; later calls just return the value from the slot.

@darrnshn
Copy link
Collaborator Author

Thanks, I've added explicit caching logic, PTAL?

@tabatkins tabatkins merged commit cb4a549 into w3c:master Feb 20, 2018
@tabatkins tabatkins removed the ready label Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants