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

ui.py split, ui performance improvement #54

Merged
merged 3 commits into from
Aug 15, 2021

Conversation

sezanzeb
Copy link
Contributor

@sezanzeb sezanzeb commented Aug 15, 2021

ui.py was very long and therefore hard to navigate, now its classes are split into multiple files

Furthermore when converting too many files the interface became laggy because the progress of all rows was updated, even if it remained at 0. Except for this there were only refactoring changes without touching any logic.

Comment on lines 350 to 355
for task, progress in task_progress:
if progress == 0:
# otherwise the ui becomes really laggy with too many files
continue

self.set_file_progress(task.sound_file, progress)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

performance improved here

@kassoulet kassoulet merged commit bb371a0 into kassoulet:py3k Aug 15, 2021
@kassoulet
Copy link
Owner

Nice, thank you !

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