diff options
author | Zufu Liu <unknown> | 2024-12-13 13:50:50 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2024-12-13 13:50:50 +1100 |
commit | 49034b8eb1e1dc055b5cb5319948c923c78d63db (patch) | |
tree | 5564ad7f6e35c46ebde3ec2e1f4a8131dae0393f | |
parent | b2bbdd14da098048dada915c37f92a5e042380ab (diff) | |
download | scintilla-mirror-49034b8eb1e1dc055b5cb5319948c923c78d63db.tar.gz |
Feature [feature-requests:#1538]. Reduce range checks in PartitionFromPosition
to improve performance.
-rw-r--r-- | src/Partitioning.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h index 17bc1998e..db2e63c11 100644 --- a/src/Partitioning.h +++ b/src/Partitioning.h @@ -182,7 +182,7 @@ public: T upper = Partitions(); do { const T middle = (upper + lower + 1) / 2; // Round high - T posMiddle = body.ValueAt(middle); + T posMiddle = body[middle]; if (middle > stepPartition) posMiddle += stepLength; if (pos < posMiddle) { |