You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
We can speed up insertion of links up to 10 or 100 times? #103
Well, if we delay execution of Maintain methods, this may improve performance of Attach method.
For example we can do it only once in 10/100 or N insertions.
Threashold == 0
6170ms (in order) for RecursionlessSizeBalancedTreeMethods
5354ms (in order) for SizeBalancedTreeMethods
3936ms (random) for RecursionlessSizeBalancedTreeMethods
3204ms (random) for SizeBalancedTreeMethods
Threashold == 1
6389ms (in order) for RecursionlessSizeBalancedTreeMethods
4570ms (in order) for SizeBalancedTreeMethods 4570 / 5354 = 0.85
3925ms (random) for RecursionlessSizeBalancedTreeMethods
2707ms (random) for SizeBalancedTreeMethods 2707 / 3204 = 0.84
Threashold == 2
6258ms (in order) for RecursionlessSizeBalancedTreeMethods
4764ms (in order) for SizeBalancedTreeMethods 4764 / 5354 = 0.89
4041ms (random) for RecursionlessSizeBalancedTreeMethods
2526ms (random) for SizeBalancedTreeMethods 2526 / 3204 = 0.78
Threashold == 3
6188ms (in order) for RecursionlessSizeBalancedTreeMethods
4808ms (in order) for SizeBalancedTreeMethods 4808 / 5354 = 0.90
3913ms (random) for RecursionlessSizeBalancedTreeMethods
2479ms (random) for SizeBalancedTreeMethods 2479 / 3204 = 0.77
Threshold == 4
6135ms (in order) for RecursionlessSizeBalancedTreeMethods
4827ms (in order) for SizeBalancedTreeMethods
3875ms (random) for RecursionlessSizeBalancedTreeMethods
2377ms (random) for SizeBalancedTreeMethods
Threshold == 10
6130ms (in order) for RecursionlessSizeBalancedTreeMethods
5601ms (in order) for SizeBalancedTreeMethods
3963ms (random) for RecursionlessSizeBalancedTreeMethods
2342ms (random) for SizeBalancedTreeMethods
So the most universal and optimal result is at Maintain Threshold == 1. Meaning just skip each odd maintain. This halfs the amount of Maintains, and we get about 15% performance improvement in all cases (sorted data insertion and random data insertion).
Activity
konard commentedon Mar 23, 2023
https://www.gitpod.io/docs/introduction/languages/dotnet
konard commentedon Mar 24, 2023
Benchmarks results:
So the most universal and optimal result is at Maintain Threshold == 1. Meaning just skip each odd maintain. This halfs the amount of Maintains, and we get about 15% performance improvement in all cases (sorted data insertion and random data insertion).