1. 16 Jun, 2016 1 commit
    • David Gibson's avatar
      altstack: Consolidate thread-local variables · 2da0271f
      David Gibson authored
      altstack uses a number of __thread variables to track internal state.  This
      allows altstack to be thread-safe, although it's still not re-entrant.
      This patch gathers all these variables into a single per-thread state
      structure.  This makes it easy to see at a glance what the whole of the
      required state is, and thereby easier to reason about correctness of
      changes to the implementation.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      2da0271f
  2. 06 Jun, 2016 3 commits
  3. 05 Jun, 2016 2 commits
  4. 03 Jun, 2016 1 commit
  5. 02 Jun, 2016 6 commits
  6. 31 May, 2016 3 commits
  7. 09 May, 2016 4 commits
  8. 06 May, 2016 1 commit
  9. 03 May, 2016 2 commits
  10. 29 Apr, 2016 4 commits
  11. 26 Apr, 2016 6 commits
  12. 25 Mar, 2016 4 commits
    • Andrew Jeffery's avatar
      strgrp: Add cosine fudge-curve to unify filter comparison spaces · e8f7a978
      Andrew Jeffery authored
      If we are to use should_grp_score_cos(x,y) as a filter the the following
      relationship must hold (from least to most expensive):
      
              should_grp_score_len(x,y)
                      >= should_grp_score_cos(x,y)
                      >= grp_score(x)
      
      should_grp_score_cos(x,y) wasn't holding up its part of the bargain, so
      real data was used to generate a fudge curve to bring
      should_grp_score_cos(x,y) results into the same space. Really this is a
      terrible hack and the problem needs more thought. Evaluation of
      should_grp_score_cos(x,y)'s performance benefit (given the relaxation of
      the filter under the fudge curve) is sorely needed.
      e8f7a978
    • Andrew Jeffery's avatar
      strgrp: Use angular similarity for distance metric properties · 911a66a7
      Andrew Jeffery authored
      Distance metrics allow us to compare similarity results, however
      applying the change leads to test suite breakage as we no longer satisfy
      the requirement that each filter's score is at most as large as that of
      the previous filter^. As such, also stop ccanlint from executing the
      tests that are known to fail until we work around the problem.
      
      ^ This is a problem that has existed since the introduction of the
      cosine similarity filter, it just wasn't detected by the test suite.
      911a66a7
    • Andrew Jeffery's avatar
      strgrp: Use ratio of hypotenuse for consistent comparisons · 44c0274a
      Andrew Jeffery authored
      Ensure comparing filter results is sensible by using a consistent
      calculation. Note that the cosine similarity measurement doesn't yet
      conform and this can give spurious results that are not detected by the
      test suite.
      44c0274a
    • Andrew Jeffery's avatar
      strgrp: Shift constant out of loop · 10db5dc0
      Andrew Jeffery authored
      Likely this was optimised away, but the code now represents the intent.
      10db5dc0
  13. 08 Mar, 2016 1 commit
  14. 25 Feb, 2016 2 commits