Skip to content
Snippets Groups Projects
  1. Feb 04, 2015
  2. Feb 02, 2015
  3. Feb 04, 2015
  4. Feb 03, 2015
  5. Jan 30, 2015
    • Nicholas Nethercote's avatar
      Bug 1127401 - Tweak PL_DHashTableSearch() to counter a Fennec regression. r=froydnj. · 27f56683
      Nicholas Nethercote authored
      PL_DHashTableLookup() had the same return protocol as SearchTable(), which
      meant that compilers could generate a tail call from the former to the latter.
      Bug 1124973 replaced PL_DHashTableLookup() with PL_DHashTableSearch(), which
      has a slightly different return protocol, and so the tail call was lost. This
      appears to be the cause of the Fennec performance regression.
      
      This patch splits SearchTable() in two (using templates to avoid explicit code
      duplication). SearchTable<false>() now has the same return protocol as
      PL_DHashTableSearch(), and so the tail call can now be used again.
      27f56683
  6. Feb 03, 2015
Loading