Skip to content
  • Yorick Peterse's avatar
    Optimize CSS expressions produced by Nokogiri · 048253bef6a9
    Yorick Peterse authored
    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.
    048253bef6a9