Skip to content

关于1.6.3节string的疑问 #4

Description

@marjune163

编译优化小节说临时将[]byte转为string的场景,编译器会优化为直接把string.str指向[]byte的底层数据,避免复制。这样会不会引起并发问题,如果有另一个协程正在操作这个[]byte会有问题吗?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions