Skip to content

Event based refreshes #265

@Utumno

Description

@Utumno

Bash should switch to an event based model of refreshing its data. As it is we check modification times on all files in the project's dir for BAIN (the getmtime(True) calls) and we poll the mods inis etc folders for changes. This is performance intensive and results in perceptible lag when switching to the installers tab and when tabbing out and back in to bash. Moreover, in BAIN, changes in the data folder are only scanned on boot due to performance cost - with event based refreshes we would be able to correctly detect changes at whatever moment.
Plus it is inelegant.

Switching to an event based model will however need new dependencies for the python version, probably watchman or watchdog.

Opening this to start investigating, however the code is not yet ready, so:
Blockers:

Metadata

Metadata

Assignees

Labels

A-perfArea: Performance (runtime performance and/or memory usage)C-internalCategory: Keep track of internal refactoring. Implies the C-todo label except if it is a full C-goalM-backburnerMisc: On backburner - not rejected, but won't be tackled for a while

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions