Skip to content

Conversation

Andrettin
Copy link
Contributor

This PR moves text/speech data to a TSV file.

Comment on lines 85 to 87
while ((pos = speech.txtstr.find("\\n", pos)) != std::string::npos) {
speech.txtstr.replace(pos, 2, "\n");
pos += 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This loop is quadratic, can you please make it linear? This can be easily done by appending to a separate string rather than doing it in-place.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for keeping this! ❤️

Copy link
Member

Choose a reason for hiding this comment

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

This file is a much better way to keep it as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I thought it was important to preserve information :) and I saw that effects-unused.tsv existed, so I followed the existing pattern

@AJenbo AJenbo requested a review from glebm August 23, 2025 22:30
@AJenbo AJenbo merged commit 76feb78 into diasurgical:master Aug 25, 2025
24 of 25 checks passed
@Andrettin Andrettin deleted the Parse-Text/Speech-data-from-TSV branch September 2, 2025 06:44
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.

4 participants