RFR: 8341136: Optimize StackMapGenerator::trimAndCompress
Abdelhak Zaaim
duke at openjdk.org
Sat Sep 28 17:53:34 UTC 2024
On Fri, 27 Sep 2024 17:05:25 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> A small optimization to reduce the write operations of trimAndCompress
I think there's no significant performance impact with this change, or it's negligible, because the condition is replaced by an assignment. While the condition check would affect every loop cycle, the overhead is minimal compared to the direct assignment.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21227#issuecomment-2380847455
More information about the core-libs-dev
mailing list