Skip to content

v0.23.2

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 09 Dec 07:51
· 2 commits to master since this release

What's Changed

Pensieve dynamically adjusts the image processing interval based on the frequency of screenshot generation and the speed of processing individual images. In environments without NVIDIA GPUs, it may be challenging to ensure that image processing keeps up with the rate of screenshot generation. To address this, Pensieve processes images on a sampled basis.

To prevent excessive system load, Pensieve’s default sampling strategy is intentionally conservative. However, this conservative approach might limit the performance of devices with higher computational capacity. To provide more flexibility, additional control options have been introduced in ~/.memos/config.yaml, allowing users to configure the system for either more conservative or more aggressive processing strategies.

watch:
  # number of recent events to consider when calculating processing rates
  rate_window_size: 10
  # sparsity factor for file processing
  # a higher value means less frequent processing
  # 1.0 means process every file, can not be less than 1.0
  sparsity_factor: 3.0
  # initial processing interval for file processing, means process one file with plugins for every N files
  # but will be adjusted automatically based on the processing rate
  # 1 means process the first file at the beginning
  processing_interval: 12

If you want every screenshot file to be processed, you can configure the settings as follows:

# A watch config like this means process every file with plugins at the beginning
# but if the processing rate is slower than file generated, the processing interval 
# will be increased automatically
watch:
  rate_window_size: 10
  sparsity_factor: 1.0
  processing_interval: 1

Remember to do memos stop && memos start to make the new config work.

  • Refact processing rate by @arkohut in #46
  • fix(indexing): refetch full entity before indexing by @arkohut in #47
  • chore: improve SQLite extension loading error message by @arkohut in #48
  • chore: add pypi readme with absolute link by @arkohut in #49

Full Changelog: v0.23.1...v0.23.2