H·G

Results 15 comments of H·G
trafficstars

其实在c++世界里, 跨线程调度的协程是非常危险的, 在实际业务逻辑代码层, 反而不如有规划的合理安排资源, 对协程底层如何调度缺乏理解和本身编码能力不是非常丰富的开发人员来讲, 最后对项目本省更加混乱. 目前为了充分的利用CPU与多核多线程的优势同时又为了获得coroutine这种可以用户态控制的切入切出的能力, 只能在自己公司又经验的人自己开发一套. 自己系统内部使用. 目前看到能工作且工作很好的基本都是这样一类. bthread/ libgo 或者其他的. 单从使用的安全性上讲, 各种这些M:N(带或者不带任务跨线程调度机制)的各种库,远远达不到“安心”用的状态. 里面都有各种个样的需要避免的东西, 而这些使用者是不知道的. 很多甚至开发者自己也罗列不出来, 只有别人出了问题. 提到了之后, 开发者才会说:“哦, 这里因为xxx的原因,不能这样调度"

same issue here, base on my test, the result is affected by Insert order, it loss part of result in some cases

```go package main import ( "bufio" "fmt" "os" "strings" "xxxxxxxxxxxxxxxxxxxxxxxxx/pkg/utils" // replace this cedar "github.com/iohub/ahocorasick" "github.com/r3labs/diff/v2" ) func main() { content := "休闲益智不烧脑,没wifi我也能玩一整天!,良心游戏,真送红包,红包,提现,现金,免费,红包提现,赚钱,挂机,网赚,亿万人生,刷宝,彩票,体彩,羊毛党,金币,短视频,疯狂猜成语,休闲游戏,爱上消消消,每天,明星,王二狗的摊位" // bad case: f, e := os.Open("kws.txt")...

it output more than 6k geohashcode, but in normal case, radius 5km, precise level 7 only generate less than 1k geohashcode; try: proximityhash -82.46895084713766 13.600221013806873 5000 7 --georaptor True ,

same issue here.

PR: https://github.com/cloudreve/Cloudreve/pull/1491

please keep libaco tiny and clean, another repo to start scheduler work?

https://github.com/HuanGong/ltio.git here is a schedule implement, it based on a reactor message loop module, it‘s simple and "may be effective" enough. it use libcoro/libaco as coroutine backend

same issue here, vim8/9 +python3 +cli +clipboard reg *: 类型 名称 内容 c "* fmt.Printf leader +f: then use cmd +v => process hang

> [iohub](https://github.com/iohub) commented [now](https://github.com/iohub/ahocorasick/issues/20#issuecomment-1895571885) > I found this bug caused by inserting huge words into cedar trie. I plan to rewrite cedar trie to fix it. thanks very much!Do you...