摘要:
CommonMistakes https://golang.org/doc/faq#closures_and_goroutines Why is there no goroutine ID? ¶ Goroutines do not have names; they are just anonymou
阅读全文
posted @ 2020-01-08 23:16
papering
阅读(538)
推荐(0)
摘要:
goroutines inside of goroutines
阅读全文
posted @ 2020-01-08 15:16
papering
阅读(195)
推荐(0)
posted @ 2020-01-07 15:50
papering
阅读(492)
推荐(0)
posted @ 2020-01-07 15:50
papering
阅读(405)
推荐(0)
posted @ 2020-01-06 19:03
papering
阅读(234)
推荐(0)
posted @ 2020-01-05 17:11
papering
阅读(157)
推荐(0)
posted @ 2020-01-05 17:08
papering
阅读(160)
推荐(0)
posted @ 2020-01-05 10:50
papering
阅读(175)
推荐(0)
摘要:
小结: 1、内存对齐:空间换时间 2、尽管类型T1和T2拥有相同的字段集,但是它们的尺寸并不相等。 type T0 struct { a int8 b int64 c int16 } type T1 struct { a int8 c int16 b int64 } 64位操作系统,基于x64的处理
阅读全文
posted @ 2020-01-05 10:29
papering
阅读(433)
推荐(0)
摘要:
对于任何一棵二叉树 终端节点数比度为2的节点数多1.
阅读全文
posted @ 2020-01-04 10:20
papering
阅读(2024)
推荐(0)
摘要:
http://blog.itpub.net/31561269/viewspace-2639083/ https://juejin.im/post/5cfd060ee51d4556f76e8067 适合的场景 数据库防止穿库 Google Bigtable,Apache HBase和Apache Ca
阅读全文
posted @ 2020-01-03 16:11
papering
阅读(934)
推荐(0)
摘要:
https://cloud.tencent.com/developer/article/1041507
阅读全文
posted @ 2020-01-03 14:16
papering
阅读(218)
推荐(0)
posted @ 2020-01-03 08:44
papering
阅读(305)
推荐(0)
摘要:
依赖 偏移量而不是页码翻页 1、对已排序数据支持逆序请求;2、数据总量的变动不影响请求参数的构造;
阅读全文
posted @ 2019-12-31 16:11
papering
阅读(305)
推荐(0)
posted @ 2019-12-30 20:36
papering
阅读(188)
推荐(0)
摘要:
https://gameinstitute.qq.com/community/detail/101951 https://www.infoq.cn/article/tencent-ranking-system-practice-and-challenges
阅读全文
posted @ 2019-12-30 18:00
papering
阅读(349)
推荐(0)
摘要:
https://redisbook.readthedocs.io/en/latest/compress-datastruct/ziplist.html
阅读全文
posted @ 2019-12-30 14:10
papering
阅读(203)
推荐(0)
摘要:
RAID系统被初始化 https://forum.huawei.com/enterprise/zh/thread-256077-1-1.html
阅读全文
posted @ 2019-12-30 14:10
papering
阅读(359)
推荐(0)
摘要:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start
阅读全文
posted @ 2019-12-30 12:17
papering
阅读(218)
推荐(0)
摘要:
能够满足这样要求的哈希算法有很多,其中比较著名并且应用广泛的一个哈希算法,那就是MurmurHash 算法。尽管这个哈希算法在 2008 年才被发明出来,但现在它已经广泛应用到 Redis、MemCache、Cassandra、HBase、Lucene 等众多著名的软件中。
阅读全文
posted @ 2019-12-28 23:48
papering
阅读(520)
推荐(0)
posted @ 2019-12-28 10:16
papering
阅读(367)
推荐(0)
posted @ 2019-12-27 23:59
papering
阅读(516)
推荐(0)
摘要:
https://www.jianshu.com/p/1a6faab3cae4
阅读全文
posted @ 2019-12-27 15:13
papering
阅读(460)
推荐(0)
摘要:
https://docs.open.alipay.com/289/105656 3、access_token 有效期:access_token取决于授权时指定的scope的有效期,如果授权时指定多个scope,最终的access_token的有效期取决于有效期最短的scope。 access_tok
阅读全文
posted @ 2019-12-26 17:59
papering
阅读(694)
推荐(0)
摘要:
https://talks.golang.org/2013/advconc.slide#5 It's easy to go, but how to stop? Long-lived programs need to clean up. Let's look at how to write progr
阅读全文
posted @ 2019-12-25 19:15
papering
阅读(364)
推荐(0)
摘要:
https://go.dev/blog/pipelines Go Concurrency Patterns: Pipelines and cancellation Sameer Ajmani13 March 2014 Introduction Go's concurrency primitives
阅读全文
posted @ 2019-12-25 17:41
papering
阅读(299)
推荐(0)
摘要:
小结: 1、 Background is the root of any Context tree; it is never canceled: 2、 https://blog.golang.org/context Sameer Ajmani29 July 2014 Introduction In
阅读全文
posted @ 2019-12-25 15:47
papering
阅读(373)
推荐(0)
摘要:
tick := time.NewTicker(4000 * time.Millisecond) select { case i := <-data2send: log.Println(i) s := convertMsg(i) producer.Produce(&kafka.Message{ Top
阅读全文
posted @ 2019-12-24 17:02
papering
阅读(475)
推荐(0)
摘要:
https://juejin.im/post/5da40462f265da5baf410a11
阅读全文
posted @ 2019-12-24 11:41
papering
阅读(261)
推荐(0)
摘要:
阿里云Redis开发规范-阿里云开发者社区 https://developer.aliyun.com/article/531067 https://mp.weixin.qq.com/s/UWE1Kx6teNs6g8jjdHnI0A 阿里云Redis开发规范 付磊-起扬 云效 2018-04-25 摘
阅读全文
posted @ 2019-12-24 11:40
papering
阅读(726)
推荐(0)
摘要:
mysql 字段值分布很少的字段要不要加索引_数据量超过多少加索引-CSDN博客 https://blog.csdn.net/qq_24935119/article/details/108601180 Mysql规范-阿里云开 发者社区 https://developer.aliyun.com/ar
阅读全文
posted @ 2019-12-23 22:30
papering
阅读(361)
推荐(0)
摘要:
linux中高并发socket最大连接数的优化详解 https://m.jb51.net/article/106546.htm?from=singlemessage
阅读全文
posted @ 2019-12-22 22:49
papering
阅读(379)
推荐(0)
posted @ 2019-12-22 00:15
papering
阅读(226)
推荐(0)
摘要:
URL Decode and Encode - Online Meet URL Decode and Encode, a simple online tool that does exactly what it says: decodes from URL encoding as well as e
阅读全文
posted @ 2019-12-21 15:02
papering
阅读(158)
推荐(0)
摘要:
patchUpload.vue?5e29:406 Uncaught (in promise) DOMException: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading
阅读全文
posted @ 2019-12-20 15:40
papering
阅读(2772)
推荐(0)
摘要:
Asynchronous method in while loop https://stackoverflow.com/questions/43064719/javascript-asynchronous-method-in-while-loop let taskPool = new Promise
阅读全文
posted @ 2019-12-19 19:58
papering
阅读(416)
推荐(0)
posted @ 2019-12-19 17:53
papering
阅读(369)
推荐(0)
posted @ 2019-12-17 19:53
papering
阅读(245)
推荐(0)
摘要:
https://zh.wikipedia.org/wiki/堆疊溢位 https://zh.wikipedia.org/wiki/缓冲区溢出
阅读全文
posted @ 2019-12-17 18:00
papering
阅读(338)
推荐(0)
摘要:
https://stackoverflow.com/questions/45591594/fetch-does-not-send-headers
阅读全文
posted @ 2019-12-17 14:37
papering
阅读(273)
推荐(0)