tech
深入 Go 中各个高性能 JSON 解析库
本文深入分析了 Go 语言中多种高性能 JSON 解析库,包括标准库 JSON Unmarshal、fastjson、gjson 和 jsonparser。通过对比它们的性能、优缺点及适用场景,帮助开发者选择合适的 JSON 解析工具。文章还提供了详细的源码解析和性能测试数据,适合对性能有要求的开发者参考。
tech
本文深入分析了 Go 语言中多种高性能 JSON 解析库,包括标准库 JSON Unmarshal、fastjson、gjson 和 jsonparser。通过对比它们的性能、优缺点及适用场景,帮助开发者选择合适的 JSON 解析工具。文章还提供了详细的源码解析和性能测试数据,适合对性能有要求的开发者参考。
tech
Compare the performance, advantages, and disadvantages of fastjson, gjson, and jsonparser This article delves into the analysis of how the standard library in Go parses JSON and then explores popular JSON parsing libraries, their characteristics, and how they can better assist us in development in different scenarios. This article is
tech
上周,Go 1.23 进入冻结期,这意味着不会添加任何新功能,并且任何已添加的功能不太可能被删除。这是一个预览即将发生的变化的好机会。 这篇文章,来了解一下 1.23 转正的 iter 包。 This article is first published in the medium MPP plan. If you are a medium user, please follow me in medium. Thank you very much. 在Go 1.22中,引入了range over func实验性功能,但需要通过参数GOEXPERIMENT=rangefunc启用。在Go 1.
tech
Last week, Go 1 .23 entered the freeze period, meaning no new features will be added, and any already added features are unlikely to be removed. This is a great opportunity to preview the upcoming changes. In this article, Let’s learn about the new iter package. This article is
tech
上周,Go 1.23 进入冻结期,这意味着不会添加任何新功能,并且任何已添加的功能不太可能被删除。这是一个预览即将发生的变化的好机会。 这篇文章,我们来介绍引入的新包unique This article is first published in the medium MPP plan. If you are a medium user, please follow me in medium. Thank you very much. 根据wikipedia的描述,interning是按需重复使用具有同等值对象的技术,减少创建新对象的动作。这种创建模式经常用于不同编程语言中的数和字符串,可以避免不必要的对象重复分配的开销。 unique 参考了go4.org/intern ,将它移动到了 官方库,并且做了相应的修改。 issue #62483 就像官方描述的一样
tech
Last week, Go 1 .23 entered the freeze period, meaning no new features will be added, and any already added features are unlikely to be removed. This is a great opportunity to preview the upcoming changes. In this article, we will introduce the new package unique This article is first
tech
In the previous article, we learned how to capture gRPC traffic using Wireshark. In this article, we will delve deeper into some details of gRPC. I am using the official example of gRPC grpc-go/examples/helloworld. This article is first published in the medium MPP plan. If you are
tech
Last week, Go 1.23 entered the freeze period, meaning no new features will be added, and any already added features are unlikely to be removed. This is a great opportunity to preview the upcoming changes. This article is first published in the medium MPP plan. If you are a
tech
上周 go1.23 已经进入冻结期了,应该不会再添加新功能,相应的已经添加了的功能 也不太可能会被移除。 这正好可以让我们提前尝鲜这些即将到来的新特性。 https://groups.google.com/g/golang-dev/c/vXE304_MnKM This article is first published in the medium MPP plan. If you are a medium user, please follow me in medium. Thank you very much. 今天要说的就是1.23中对//go:linkname指令的变更。 相关讨论的issue 在这里: https:
tech
Background In the previous article, we learned that panic can occur in three ways: * Initiated by developers: by calling the panic() function. * Generated by the compiler: for example, in the case of division by zero. * Sent to the process by the kernel: for example, in the case of an illegal
Why's The Desigin
本文探讨了Google为何选择HTTP/2作为gRPC的基础协议,分析了HTTP/2的开放性、安全性、流控能力及其在多语言实现中的优势,同时也指出了其在RPC元数据传输效率上的不足。了解gRPC如何在云原生环境中推动开放互通的需求,及其在未来可能成为更广泛RPC标准的潜力。
Why's The Desigin
Google's gRPC uses HTTP/2 for open standards, proven reliability, support for various platforms, and security. What makes it a game-changer?