Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: src/js/array.js

Issue 2794863002: Fix comment of quicksort bailout parameter on array.js (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/array.js
diff --git a/src/js/array.js b/src/js/array.js
index bbc84b164a404ade90ca3dafeeb64186e3c1fd0b..2e746aee27033239e1da8e76a5b61232f975290b 100644
--- a/src/js/array.js
+++ b/src/js/array.js
@@ -708,7 +708,7 @@ function ArraySplice(start, delete_count) {
function InnerArraySort(array, length, comparefn) {
// In-place QuickSort algorithm.
- // For short (length <= 22) arrays, insertion sort is used for efficiency.
+ // For short (length <= 10) arrays, insertion sort is used for efficiency.
if (!IS_CALLABLE(comparefn)) {
comparefn = function (x, y) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698