Skip to content

Only watch what we need to #25

@tlienart

Description

@tlienart

This is not urgent. I'm just thinking that at the moment, if we trigger lots of requests, lots of files will be watched for changes. This makes sense if all the requests come from new tabs. But otherwise doesn't (e.g. if it's the same tab asking different things we should only really track the file that is currently being watched).

Watching files is very cheap though so not a big deal and even in the case of a huge website, we'd basically have to do hundreds of thousands of requests and modify all these files for it to maybe be a bottleneck.

Suggestion: a doable intermediate step which would feel cleaner is to stop watching files for which there is no associated viewer.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions