|
24 | 24 | <meta property="og:url" content="/">
|
25 | 25 | <meta property="og:description" content="Eureka is a elegant and powerful theme for Hugo.">
|
26 | 26 | <meta property="og:site_name" content="IO01 Blog">
|
27 |
| -<meta property="og:updated_time" content="2021-09-16T00:00:00+00:00"> |
| 27 | +<meta property="og:updated_time" content="2021-11-29T00:00:00+00:00"> |
28 | 28 | <meta property="article:section" content>
|
29 | 29 | <link rel=alternate type=application/rss+xml href=/index.xml title="IO01 Blog">
|
30 | 30 | <body class="flex flex-col min-h-screen">
|
|
68 | 68 | <div class="flex flex-col-reverse lg:flex-row justify-between">
|
69 | 69 | <div class=w-full>
|
70 | 70 | <div class=mb-4>
|
| 71 | +<a href=/posts/%E4%BD%BF%E7%94%A8%E9%98%BF%E9%87%8C%E4%BA%91%E6%95%88%E5%90%8C%E6%AD%A5git%E4%BB%93%E5%BA%93%E5%88%B0github/ class="font-bold text-xl hover:text-eureka">使用阿里云效同步 Git 仓库到 Github</a> |
| 72 | +</div> |
| 73 | +<div class=content> |
| 74 | +前言 有时 Github 网络的不稳定性实在令人头痛,push 总是失败,而且需要把主仓库放在 Github 而非 Gitee 等国内平台,虽然可以通过配置代理进行,不过也可以曲线救国,选择通过 push 到国内代码管理平台,然后通过 CI 平台自动推送到 Github。 |
| 75 | +阿里云效综合了代码仓库和 CI 平台,私有代码仓库免费,免费构建时间足够支撑我们这点小事,并且执行环境可以选香港保证了能 push 到 GitHub,所以选择了阿里云效。 |
| 76 | +理论上所有能通过 git push 触发 CI(CI 的基本操作了)并且基础环境存在 git 而且网络良好的平台都可以按照本文方法进行,甚至有更简单的比如 Gitlab 直接支持推送到 Github,至于本文为何没有选用 Gitlab,纯属个人偏好。 |
| 77 | +</div> |
| 78 | +<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text"> |
| 79 | +<div class="mr-6 my-2"> |
| 80 | +<i class="fas fa-calendar mr-1"></i> |
| 81 | +<span>2021-11-29</span> |
| 82 | +</div> |
| 83 | +</div> |
| 84 | +</div> |
| 85 | +</div> |
| 86 | +</div> |
| 87 | +<div class=py-6> |
| 88 | +<div class="flex flex-col-reverse lg:flex-row justify-between"> |
| 89 | +<div class=w-full> |
| 90 | +<div class=mb-4> |
71 | 91 | <a href=/posts/%E6%B7%B1%E5%85%A5%E6%BA%90%E7%A0%81%E6%8E%92%E6%9F%A5-flag_activity_new_task-%E5%AF%BC%E8%87%B4%E7%9A%84-activity-%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%90%AF%E5%8A%A8/ class="font-bold text-xl hover:text-eureka">深入源码排查 FLAG_ACTIVITY_NEW_TASK 导致的 Activity 无法正常启动</a>
|
72 | 92 | </div>
|
73 | 93 | <div class=content>
|
|
165 | 185 | </div>
|
166 | 186 | </div>
|
167 | 187 | </div>
|
168 |
| -<div class=py-6> |
169 |
| -<div class="flex flex-col-reverse lg:flex-row justify-between"> |
170 |
| -<div class=w-full> |
171 |
| -<div class=mb-4> |
172 |
| -<a href=/posts/%E6%9C%89%E8%B6%A3%E7%9A%84%E7%AE%97%E6%B3%95-%E5%B8%83%E9%9A%86%E8%BF%87%E6%BB%A4%E5%99%A8/ class="font-bold text-xl hover:text-eureka">有趣的算法-布隆过滤器</a> |
173 |
| -</div> |
174 |
| -<div class=content> |
175 |
| -引言 现在假设一个需求:设计一个url黑名单系统,需求是1亿个url黑名单,每个url平均长度30字节,判断当前的url是否在黑名单中。 |
176 |
| -我们最先想到的可能时HashSet,如果少量的url,HashSet有着O(1)的查询效率是首选的方案。但是面对1亿个url,单单存储value就需要2861MB内存,显然不可取。而如果放到硬盘上进行数据库查询,面对近3GB的数据库,每次匹配都要查询的话,IO操作本身就是瓶颈。 |
177 |
| -所以这时候引入了布隆过滤器。 |
178 |
| -</div> |
179 |
| -<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text"> |
180 |
| -<div class="mr-6 my-2"> |
181 |
| -<i class="fas fa-calendar mr-1"></i> |
182 |
| -<span>2019-10-30</span> |
183 |
| -</div> |
184 |
| -</div> |
185 |
| -</div> |
186 |
| -</div> |
187 |
| -</div> |
188 | 188 | </div>
|
189 | 189 | </div>
|
190 | 190 | <ul class="pagination pagination-default">
|
|
0 commit comments