Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Add performance expectations #67

Merged
merged 2 commits into from
Sep 23, 2019
Merged

Add performance expectations #67

merged 2 commits into from
Sep 23, 2019

Conversation

rricard
Copy link
Member

@rricard rricard commented Sep 20, 2019

No description provided.

@rricard rricard requested a review from littledan September 20, 2019 16:08
@@ -368,6 +383,19 @@ weakMap.set(record, true);

# FAQ

## What are the performance expectations of those Data Structures?

This proposal in itself does not put any performance guarantees and does not require specific optimizations on the implementers. It is however built in a way that some performance optimizations can be done in most cases if implementers choose to do so.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Map and Set impose specific requirements on implementations - namely, that retrieval must be sublinear as the size of the collection increases - why not do the same here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more like strings. it's not really possible to guarantee both constant time concatenation and indexing at once, but implementations try to make it kind of work anyway. We should explain this explicitly. This could also be a good place to paste the text I wrote in an issue about this topic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just pasted the text you wrote, I just had to retrieve it

@rricard rricard force-pushed the optimization-points branch from b4ce11c to 3a59a9b Compare September 20, 2019 17:48
@rricard
Copy link
Member Author

rricard commented Sep 20, 2019

@littledan I just copied your writeup from #2 (comment) in the PR

@rricard rricard merged commit 2d7b79f into master Sep 23, 2019
@rricard rricard deleted the optimization-points branch September 23, 2019 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants