首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏golang算法架构leetcode技术php

    golang源码分析:go-reflect

    基于上述原理https://github.com/goccy/go-reflect诞生了。 下面分析下它的源码: bridge.go实现了,go-reflect 实现的反射类型和go源码里实现的反射的相互转换函数:都是通过指针操作来实现的。 functions), and the top bits of the flag give the method number // in r's type's method table. } go-reflect

    41810编辑于 2023-09-06
  • 来自专栏【腾讯云开发者】

    go语言最全优化技巧总结,值得收藏!

    消除一般的struct反射内存消耗go-reflect。 (网址:https://github.com/goccy/go-reflect) 避免一些类型转换,如interface->[]byte。

    1.1K41发布于 2021-08-24
  • 来自专栏腾讯大讲堂的专栏

    go语言最全优化技巧总结,值得收藏!

    消除一般的struct反射内存消耗go-reflect。 (网址:https://github.com/goccy/go-reflect) 避免一些类型转换,如interface->[]byte。

    1K30发布于 2021-09-03
领券