Optimize CSS expressions produced by Nokogiri
Nokogiri produces inefficient XPath expressions when given CSS expressions such as "a.gfm". Luckily these expressions can be optimized quite easily while still achieving the same results. In the two cases where this optimization is applied the run time has been reduced from around 170 ms to around 15 ms.
Showing
lib/banzai/querying.rb
0 → 100644
spec/lib/banzai/querying_spec.rb
0 → 100644
想要评论请 注册 或 登录