Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 01a95826c99b8f7852ff02e93d27624da8903107
https://github.com/WebKit/WebKit/commit/01a95826c99b8f7852ff02e93d27624da8903107
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M Source/WTF/wtf/Vector.h
Log Message:
-----------
Vector::reverse() should use std::ranges::reverse() instead of at()
https://bugs.webkit.org/show_bug.cgi?id=319857
rdar://182756563
Reviewed by Chris Dumez.
Vector::reverse() swapped elements via at(), paying a redundant bounds
check on every iteration even though the loop bounds already guarantee
valid indices. Use std::ranges::reverse(*this) instead, matching the
std::ranges::fill(*this, ...) pattern already used elsewhere in this
file (Vector::fill).
* Source/WTF/wtf/Vector.h:
(WTF::Malloc>::reverse):
Canonical link: https://commits.webkit.org/317612@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications