-
Notifications
You must be signed in to change notification settings - Fork 112
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
Bad performance when many notes are listed #213
Comments
I added simple benchmark codes for note sorters. The results show that AlphaNumSorter is 20+ times slower than other sorters. AlphaNumSorter may cause performance problems when nvpy manages many notes. Other sorters seems to have enough performance. The biggest impact on performance is the update process of the tk.Text in NotesList. I'll try to benchmark it later. $ make benchmark
PYTHONPATH=.:$PYTHONPATH python3 -m nose --with-timer -q -s benchmarks/*.py
[success] 91.64% benchmarks.sorters.BenchmarkSorters.test_alphanum_10k_10times: 1.3473s
[success] 3.89% benchmarks.sorters.BenchmarkSorters.test_alpha_10k_10times: 0.0571s
[success] 2.01% benchmarks.sorters.BenchmarkSorters.test_date_10k_10times: 0.0295s
[success] 1.76% benchmarks.sorters.BenchmarkSorters.test_pinnged_10k_10times: 0.0259s
[success] 0.70% benchmarks.sorters.BenchmarkSorters.test_nop_10k_10times: 0.0103s
----------------------------------------------------------------------
Ran 5 tests in 1.471s
OK |
Benchmark Result
Windows 11 21H2 Python 3.11.1 @ QEMU on EPYC 7452
Debian sid Python 3.10.8 @ Core i5-4460
Ubuntu 22.04.1 Python 3.10.6 @ QEMU on EPYC 7452
Ubuntu 18.04.6 Python 3.6.9 @ QEMU on EPYC 7452
Ideas to improve performance
|
The notes list refreshing process takes long time when many notes are listed. In particular, very slow-down in windows environment.
TODO: measures performance.
The text was updated successfully, but these errors were encountered: