[PR #1653] [MERGED] Prefer std::map::insert over find and operator[] #2095

Closed
opened 2026-03-04 02:03:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1653
Author: @gaul
Created: 5/8/2021
Status: Merged
Merged: 5/9/2021
Merged by: @ggtakec

Base: masterHead: map/insert


📝 Commits (1)

  • e7d547b Prefer std::map::insert over find and operator[]

📊 Changes

1 file changed (+12 additions, -15 deletions)

View changed files

📝 src/cache.cpp (+12 -15)

📄 Description

This avoids a duplicate lookups.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/1653 **Author:** [@gaul](https://github.com/gaul) **Created:** 5/8/2021 **Status:** ✅ Merged **Merged:** 5/9/2021 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `map/insert` --- ### 📝 Commits (1) - [`e7d547b`](https://github.com/s3fs-fuse/s3fs-fuse/commit/e7d547b76783478fb23f7dee3d9b12b13c5c3a68) Prefer std::map::insert over find and operator[] ### 📊 Changes **1 file changed** (+12 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/cache.cpp` (+12 -15) </details> ### 📄 Description This avoids a duplicate lookups. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:03:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2095
No description provided.