-
Notifications
You must be signed in to change notification settings - Fork 191
Sorting4 #439
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
Sorting4 #439
Conversation
Changed sorted integer array from size 2**20 to size 2**16 Changed sorted character array from size 26**4 to 16**4, so the four characters are a-p. Changed sorted string array from size 26**3 to 16**3, so the four characters are a-p. Change format for the run times from F10.5 to F10.6 to give at least three digits of precision. [ticket: X]
Broke up seveeral lines so that the source code would be conistenly no more than 80 columns. [ticket: X]
Changed the format of a couple of commets so they were less than 80 columns wide. [ticket: X]
Changes two comments so that they are less than 80 columns wide. [ticket: X]
I got confused and in my commit of stdlib_sorting.md thought I was committing stdlib_sorting.fypp. The commit to stdlib_sorting.md actualy documented the changes in the output of test_sorting.f90, i.e., the reduction in the size of the arrays being sorted, so the runtime of test_sorting.f90 would be less than 1 second. [ticket: X]
I have made the test code, |
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.
Thank you. LGTM. Following the CI, the test for sort
takes now < 1 second. I just have a minor comment.
The code had two contexts in which it used the literal value 16. First for power of two number of elements in the integer arrays. Second for the number of characters in the character set used to generate character arrays and strings. For the first conext I defined the parameter test_power. For the second context I defined the parameter char_set_size, bot with the value of 16. [ticket: X]
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.
Looks good to me
Changed
src/tests/sorting/test_sorting.f90
so that it should run in under one second, by reducing the length of the arrays being sorted, and setting the number of repeats to 1. Changeddoc/specs/stdlib_sorting.md
so its discussion of the output oftest_sorting.f90
reflected the changes in the code. Changed two comments insrc/stdlib_sorting.fypp
so they were less than 80 columns wide.