mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-11-05 00:17:25 +00:00
[PR #21] [MERGED] Some performance optimizations #242
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
low priority
low priority
pull-request
question
waiting for feedback
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DominikDoom/a1111-sd-webui-tagcomplete#242
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/21
Author: @sgmklp
Created: 10/18/2022
Status: ✅ Merged
Merged: 10/18/2022
Merged by: @DominikDoom
Base:
main← Head:dev📝 Commits (10+)
98f3617add a logic change8b8656fput special Tag before normal Tags9169c46put special Tag before normal Tagsdf51f67Merge branch 'logic_changes' of https://github.com/sgmklp/a1111-sd-webui-tagcomplete into logic_changesc079fd5.fae269cMerge branch 'dev' into logic_changesc18f5a4Merge branch 'dev' into logic_changes17ca9c0add README_ZH.md5073616finish README_ZH.md for last versionf6c5064.📊 Changes
2 files changed (+64 additions, -48 deletions)
View changed files
📝
javascript/tagAutocomplete.js(+63 -48)📝
tags/config.json(+1 -0)📄 Description
There are four major changes to this branch:
1.The logic when adding the element of the result list is not very clear. I have made it clearer and the function is the same as before.
2.When the number of results is too large, the selection of results will not be smooth. I solved this problem using indexes. (Because only one result will be selected, there is no need to use a loop)
3.Change the global variables not defined by var to var, so as to use the "Go to Definition" function of IDE such as VS CODE.
4.When the number of results is too large, it took too long to load the result list. At first, only part of the results will be loaded, and then part of the results will be loaded when the last result is reached.The config option
resultStepLengthcan set the number of everytime load.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.