Skip to content
Snippets Groups Projects

writer: make calling flush() in write_addition(s)() optional

using a constructor 'auto_flush' bookean argument. The idea is that in a test session, each call to 'flush()' takes ~1s to run, so having the test handling a single call to flush() when needed (instead of n calls) make test execution significantly faster.

For example, swh-storage's test_replay.py execution went from ~140s to ~40s, and test_backfill.py from ~40s to ~15s.

Depends on !224 (closed)


Migrated from D8705 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading