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

Фикс сортировки #412

Closed
ssvine opened this issue Feb 24, 2024 · 0 comments
Closed

Фикс сортировки #412

ssvine opened this issue Feb 24, 2024 · 0 comments

Comments

@ssvine
Copy link
Contributor

ssvine commented Feb 24, 2024

При обновлении исходников WinSCP в функцию TNamedObjectList::Notify попал вызов сортировки для случая FAutoSort == true, но в нашем случае данные сортируются автоматически при вставке элемента. А тут получается, что каждая вставка запускает сортировку массива по новой, а это минимум квадратичная сложность.

Пулл реквест для фикса

@ssvine ssvine closed this as completed Feb 24, 2024
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

No branches or pull requests

1 participant