没有合适的资源?快使用搜索试试~ 我知道了~
mysqldriver-go:GC优化MySQL驱动程序
共15个文件
go:12个
md:1个
license:1个
需积分: 9 0 下载量 193 浏览量
2021-02-20
05:46:56
上传
评论
收藏 19KB ZIP 举报
温馨提示
mysqldriver-go 目录 动机 有许多实现接口MySQL驱动程序。 但是,使用此通用接口,尤其是在方法中,需要在堆中存储许多对象。 从数据库中读取大量记录会大大增加垃圾回收(GC)的暂停时间,这对于高吞吐量,低延迟的应用程序可能非常敏感。 由于上述原因以及对GC友好MySQL驱动程序的需求,我们决定不遵循接口并编写此驱动程序。 以下是使用Go 1.5.2在MacBook Pro (Retina, 13-inch, Late 2013), 2.8 GHz Intel Core i7, 16 GB 1600 MHz DDR3 : ➜ benchmarks git:(master) ✗ go run main.go mysqldriver: records read 100 HEAP 129 time 722.293µs go-sql-driver: records re
资源推荐
资源详情
资源评论
收起资源包目录
mysqldriver-go-master.zip (15个子文件)
mysqldriver-go-master
.travis.yml 100B
doc.go 2KB
helpers.go 453B
strconvutils.go 3KB
query_test.go 16KB
db.go 3KB
query.go 11KB
LICENSE 1KB
benchmarks
main.go 2KB
row.go 8KB
helpers_test.go 780B
conn.go 3KB
README.md 4KB
conn_test.go 1KB
db_test.go 5KB
共 15 条
- 1
资源评论
三渔
- 粉丝: 23
- 资源: 4544
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功