Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(lru): use map.delete() directly#713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wraithgar merged 2 commits intonpm:mainfromnegezor:patch-1
May 9, 2024
Merged

fix(lru): use map.delete() directly#713

wraithgar merged 2 commits intonpm:mainfromnegezor:patch-1
May 9, 2024

Conversation

negezor
Copy link
Contributor

@negezornegezor commentedMay 8, 2024
edited
Loading

The default implementation already returns boolean if the value has been deleted.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete#return_value

It's also faster since we don't double check the hashmap for a value.

mbtools reacted with thumbs up emoji
@negezornegezor requested a review froma team as acode ownerMay 8, 2024 17:49
@lukekarryslukekarrys changed the titlechore(lru): use map.delete() directlyfix(lru): use map.delete() directlyMay 8, 2024
Copy link
Contributor

@lukekarryslukekarrys left a comment

Choose a reason for hiding this comment

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

Thank you!

negezor and kravetsone reacted with hooray emoji
@wraithgarwraithgar merged commit6466ba9 intonpm:mainMay 9, 2024
@github-actionsgithub-actionsbot mentioned this pull requestMay 9, 2024
wraithgar pushed a commit that referenced this pull requestMay 9, 2024
🤖 I have created a release *beep* *boop*---## [7.6.2](v7.6.1...v7.6.2)(2024-05-09)### Bug Fixes*[`6466ba9`](6466ba9)[#713](#713) lru: usemap.delete() directly (#713) (@negezor,@lukekarrys)---This PR was generated with [ReleasePlease](https://github.com/googleapis/release-please). See[documentation](https://github.com/googleapis/release-please#release-please).Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@mbtools
Copy link
Contributor

Thanks for the optimization 😊

negezor reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@wraithgarwraithgarwraithgar approved these changes

@lukekarryslukekarryslukekarrys approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@negezor@mbtools@wraithgar@lukekarrys

[8]ページ先頭

©2009-2025 Movatter.jp