Skip to content

Optimized difficulty toggle to work on very long lists (1000+ problems) - #3

Open
henryjw wants to merge 1 commit into
faze059:mainfrom
henryjw:optimize-hiding-in-long-lists
Open

Optimized difficulty toggle to work on very long lists (1000+ problems)#3
henryjw wants to merge 1 commit into
faze059:mainfrom
henryjw:optimize-hiding-in-long-lists

Conversation

@henryjw

@henryjw henryjw commented Jan 15, 2025

Copy link
Copy Markdown
Contributor

This isn't a problem with most lists, but there are some like Google's all time questions list (1700+) problems and (more commonly) the list of all problems on LeetCode (3500+ problems). Basically, the extension would hang when trying to process so many items. With this change, it now takes less than a second or two to process such lists.

The batching implementation works on all pages. But feel free to make any changes if needed.

Before
leetcode hider hang

After
leetcode hider optimized

@codesandbox

codesandbox Bot commented Jan 15, 2025

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

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.

1 participant