-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Reduce implicit copies. Use std::filesystem::path overtly
Currently, we internally create copies every time we call std::filesystem-based operations (for creation of std::filesystem::path from std::string_view). Example(s) - https://github.com/privacysandbox/data-plane-shared-libraries/blob/260c792b84f5317b8407563097fc93c56270cf3e/src/roma/byob/container/run_workers.cc#L171 https://github.com/privacysandbox/data-plane-shared-libraries/blob/260c792b84f5317b8407563097fc93c56270cf3e/src/roma/byob/container/run_workers.cc#L179 If we use std::filesystem::path consistently and use std::filesystem::path's c_str() as needed, we can reduce copies in critical path. Bug: b/382492879 Change-Id: I7e1902cb9182d8752ea51765907aef448ab30852 GitOrigin-RevId: 2dc2f44f149b3c49a090bfacfdb92f407316b988
- Loading branch information
1 parent
260c792
commit ecc2e99
Showing
2 changed files
with
63 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters