1. 04 Mar, 2020 1 commit
    • Charles Ferguson's avatar
      Small fixes for the DB with insertions. · 810a71b2
      Charles Ferguson authored
      The insertions are now going through the standard interface, and the
      creation of the tables done in through the standard table creation
      rather than being constructed in the CachedString class.
  2. 06 Feb, 2020 1 commit
    • Charles Ferguson's avatar
      Add support for PostgreSQL to the database library. · 040b876c
      Charles Ferguson authored
      PostgreSQL requires a few slightly different interfaces from the
      SQLite system, none of which are terrible, but the inserts now need
      to know what field is being returned as the row id. That's a quite
      sensible thing to do, but it'll break anything that uses the old
      interface and doesn't realise that it needs to supply that parameter
      if it wants a rowid. Meh, not a lot you can do about that.
  3. 31 Jan, 2020 3 commits
  4. 28 Nov, 2019 1 commit
  5. 12 May, 2019 22 commits
  6. 11 May, 2019 2 commits
  7. 21 Apr, 2019 2 commits
  8. 11 Nov, 2018 1 commit
    • Charles Ferguson's avatar
      Add parameter counting decorator to CallStatisticsDecorator. · 513b68e9
      Charles Ferguson authored
      Being able to break down the parameters that a function is called with
      can help determine whether memoisation will help performance. This
      change introduces a decorator capable of doing this, and the ability
      to print the count results in an ordered way that might help determine
      where problems lie.
  9. 02 Sep, 2018 1 commit
  10. 14 Jul, 2018 1 commit
  11. 02 Jul, 2018 1 commit
    • Charles Ferguson's avatar
      Add ReportingCounter, which gives its counts at the end of the run. · 7301e53a
      Charles Ferguson authored
      Whilst debugging it is often handy to have a report of the number of
      times that a given operation happened, or some similar result. The
      counter object allows counting values, and is here extended so that
      on exit of the application, the counts it collected are printed out.
      It might be rare to need this, but it came up recently as a handy way
      to get some statistics out at the end of a run.
  12. 29 Jun, 2018 2 commits
    • Charles Ferguson's avatar
      Add CachedProperty - a property decorator which caches results. · 4d57fc12
      Charles Ferguson authored
      The @cachedproperty decorator makes the value of a property fixed
      on its first evaluation, making it faster to use. The value is
      kept within the properties of the object it was invoked on. The
      intention is that this memoisation allows the property to only
      be calculated once. If the value needs to be recalculated, however,
      the property can be deleted, which causes it to uncache. If it is
      explicitly reassigned, the memoised value is replaced.
    • Charles Ferguson's avatar
      Add CallStatisticsDecorator - a decorator to count the times called. · 6206103c
      Charles Ferguson authored
      The decorator counts the number of times it was invoked, and stores
      the results in a dictionary keyed by the name of the function. Intended
      just to understand the usage of certain internal functions without
      additional accounting code.
  13. 19 May, 2018 1 commit
  14. 05 May, 2018 1 commit