找到了官方的答复:
I'll have a detailed post on this at the end of the week, including full performance numbers, motivation, design decisions, etc. But to quickly answer your questions.
The implementation is quite different, and pull requests to the official driver that changed design (a long time ago) were not accepted.
Our driver and bson implementations are faster, even in pure Ruby, so there was no need to do native C. (It also makes it more stable across various operating systems, and JRuby users don't get penalized anymore - it's faster on the JVM than the Java bson implementation.)
First run numbers are here: https://gist.github.com/1844063 with more optimizations to come from us as well.
Origin is basically just there to be a DSL to build query selectors, and has no dependency on any other gem. I wanted to do this so others could utilize the DSL that Mongoid has for it's criteria without needing to use Mongoid, or depend on any driver.
- 这个实现是有很大不同的,MongoDB 官方 Ruby Driver 不会接受这种改变了设计的 Pull Request。
- 我们的 Driver 和 BSON 实现是更快的,哪怕它是纯 Ruby 的,所以不在需要基于 C 了。(这能让它在不同的操作系统中稳定运行,并且 JRuby 用户再也不用受罪了 - 它的速度比 Java BSON 实现更快。) 这里有运行数据:https://gist.github.com/1844063 以及我们更多的优化的数据。
- 起因还是为了构建一个基于 DSL 的 Query 选择器,并且不需要依赖其它的 Gem。我想做这个事情让其他人(需要用 MongoDB 的人)可以不用使用 Mongoid 的 DSL,Mongoid 的 criteria,或依赖任何 Driver。
https://groups.google.com/d/topic/mongoid/vS5hn_659Kc/discussion
#6 楼 @alucardpj 这个功能我发现很多人不会用
你是在配置 Gitosis 吧?
用处不大呀
这个正文乱得... 另外看半天也没明白你在干啥
Rails 3.0.x 是很慢的,赶紧升级 3.2 吧,速度就快了。
只有修改过的文件才会重新加载的
我也是哪个区的,哈哈哈
习惯上 Github 搜索
raw 这个警告不太准确
Eval 这个漏洞应该是很危险的,换成了别的方式
试了一下 Ruby China 的代码,立马发现问题了,哈哈哈 http://rails-brakeman.com/repositories/9-ruby-china-ruby-china/builds/41#.T7xbPY69nMI
@Los 能不能把 Ruby China 的 Favicon 加上 另外也顺带加一下我的 720p.so 推荐一下吧
我猜测,gemerate_index 设计的时候没有考虑到所有 gem 的情况,它只是设计给官方生成新 gem 的 spec 信息
我写错字了,本来是想说比如的,结果敲成了必须...
设置里面改快捷键,必须比如 Ctrl+p
激动,手抖,好多快捷键都没用,还有 Sublime Text 2 的鹾样也上去了。
原始的 gem 是没有问题的,你要从自己的代码上面找原因,你改 gem 的代码可不行
最上面 omniauth 报错是说参数个数不对。