-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hey, I was looking for some array.bas to improve my projects and this is awesome! But I use a function to sort array that I came up with a long time ago that is way faster than the one here. As a thank you for this project, I'd like to contribute with the arraySorterSDim (for single dim arrays) and the ArraySorter (for two dim arrays) You can compare the performance with a simple test: Function getFaster() Dim myArr(5000) As Variant Dim m1Arr() As Variant Dim m2Arr() As Variant Dim t1 As Double Dim i As Double For i = 0 To 5000 myArr(i) = Rnd Next i t1 = Time m1Arr = ArraySort(myArr) Debug.Print "time for m1:", Time - t1 t1 = Time m2Arr = arraySorterSDim(myArr) Debug.Print "time for m2:", Time - t1 End Function Wich gave me: time for m1: 00:00:21 time for m2: 00:00:09
- Loading branch information
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f104aa6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Menor" is the Portuguese (Brazil) for minor