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

Huge list command performance improvement to make loading results instant #7

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

AnthoPakPak
Copy link
Contributor

As I've stated in the issue #6 (Any way to improve list efficiency?), since I've got hundreds of tabs opened, I often has to wait up to 10 seconds for the list command to return the results.
After lot of research I've founded out a way to improve the command efficiency.

This is done by initially storing all tabs titles/urls in double entries arrays (matching windows/tabs indexes) instead of requesting the values in a double for loop.

The difference is blazing! Results are now returned almost instantly even when you have hundreds of tabs. I hope code will be merged so that others will also profit from these changes 👌

…l tabs titles/urls in double entries arrays (matching windows/tabs indexes) instead of requesting the values in a double for loop.
@epilande
Copy link

This is amazing BTW.. Initially my tabs were taking 20~30 seconds to retrieve. After applying these code changes locally it loaded instantly

@luckman212
Copy link

Just realized this initial work was done almost a year ago. Is @bit2pixel around? Any chance for a merge?

@luckman212
Copy link

In case anyone's impatient, I just pushed a release 1.0.4 to my fork that incorporates this and a couple of other minor fixes.

@bit2pixel
Copy link
Owner

@AnthoPakPak thank you so much for contributing, this is fantastic! I'm merging this in and will create a new Alfred workflow on the weekend.

@bit2pixel bit2pixel merged commit 98df006 into bit2pixel:master Mar 10, 2021
@bit2pixel
Copy link
Owner

Just realized this initial work was done almost a year ago. Is @bit2pixel around? Any chance for a merge?

Hey @luckman212, thanks for the ping! I took a break from github, back now, just merged the changes :)

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