Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File diff #947

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

File diff #947

wants to merge 3 commits into from

Conversation

WarmUpTill
Copy link
Owner

No description provided.

list->addItem(obs_module_text(
"AdvSceneSwitcher.condition.file.type.dateChange"));
static constexpr std::array<
std::tuple<MacroConditionFile::ConditionType, std::string_view>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious - wh this instead of map

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah just some unnecessary constexpr optimization ... no reason in particular.

@Destroy666x
Copy link
Contributor

Idea to improve it for bigger files - "Check only starting from last known line" checkbox or anything similar for kind of "tail" mode that would work in some scenarios. Otherwise much faster diffing algorithm would be needed, but that's impossible without moving the action IIRC and also wouldn't help that much with e.g. some game log files that can grow heavily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants