You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2024/09/07 10:58:00 UTC

[jira] [Updated] (THRIFT-5817) [C++] Avoid copy of TUuid

     [ https://issues.apache.org/jira/browse/THRIFT-5817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer updated THRIFT-5817:
-------------------------------
    Fix Version/s:     (was: 0.21.0)

> [C++] Avoid copy of TUuid
> -------------------------
>
>                 Key: THRIFT-5817
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5817
>             Project: Thrift
>          Issue Type: Bug
>          Components: C glib - Compiler, C++ - Compiler
>         Environment: C++ and C generator
>            Reporter: Carel
>            Assignee: Carel
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The current implementation of the TUuid type generates code that copies the TUuid type and does not use cont reference like other complex types, like std::string.
> For consistency and performance the copy should be avoided and a const reference must be passed. 
> See [this|https://github.com/apache/thrift/pull/3035#discussion_r1744537147] comment 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)