Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
6b98094
Refactor read-only string parameters to std::string_view (#59887)
MuhammadSaif700 Feb 5, 2026
8d11de8
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 5, 2026
37d39cb
Fix documentation comment positioning for RemoveLocalReference
MuhammadSaif700 Feb 6, 2026
a34c16a
Merge branch 'use-string-view' of https://github.com/MuhammadSaif700/…
MuhammadSaif700 Feb 6, 2026
81a9ab2
Merge upstream/master: resolve conflicts by removing deprecated local…
MuhammadSaif700 Feb 6, 2026
e9bff46
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 6, 2026
2a27988
Fix PushError signature mismatch: update header to use std::string_view
MuhammadSaif700 Feb 6, 2026
711fcc9
Merge branch 'use-string-view' of https://github.com/MuhammadSaif700/…
MuhammadSaif700 Feb 6, 2026
f7b859c
Fix clang-format: reformat function signatures to match Ray code style
MuhammadSaif700 Feb 6, 2026
977ae46
Fix additional clang-format issues in core_worker and reference_counter
MuhammadSaif700 Feb 6, 2026
5a3da72
Fix clang-format violations in core_worker.h
MuhammadSaif700 Feb 6, 2026
c58c90d
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 6, 2026
1666510
Fix comprehensive clang-format violations across core_worker and task…
MuhammadSaif700 Feb 6, 2026
0ed3c1d
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 6, 2026
d7336ae
Fix compilation errors: add std::string() conversions for string_view…
MuhammadSaif700 Feb 6, 2026
af8059e
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 6, 2026
df15c98
Fix clang-format violations: split long function call lines
MuhammadSaif700 Feb 6, 2026
840bc88
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 6, 2026
ee51529
Optimize: reuse string conversion in OverrideTaskOrActorRuntimeEnvInf…
MuhammadSaif700 Feb 8, 2026
9eb8933
Merge branch 'master' into use-string-view
MuhammadSaif700 Feb 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/ray/common/task/task_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <cstddef>
#include <memory>
#include <string>
#include <string_view> // Changed for read-only string parameters
#include <utility>
#include <vector>

Expand Down Expand Up @@ -103,8 +104,9 @@ class TaskSpecification : public MessageWrapper<rpc::TaskSpec> {
/// Construct from protobuf-serialized binary.
///
/// \param serialized_binary Protobuf-serialized binary.
explicit TaskSpecification(const std::string &serialized_binary)
: MessageWrapper(serialized_binary) {
explicit TaskSpecification(
std::string_view serialized_binary) // Changed: read-only param
: MessageWrapper(std::string(serialized_binary)) { // Convert for base class
ComputeResources();
}

Expand Down
Loading