Integrated: 8372950: Pem.pemEncoded should cache the Pattern
Fernando Guallini
fguallini at openjdk.org
Tue Jan 6 10:56:49 UTC 2026
On Thu, 4 Dec 2025 17:13:13 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:
> PEM is using the String.replaceAll() method that creates a Pattern internally every time. This looks like a minor inefficiency and since it is caching Patterns for other cases, it should do the same here.
This pull request has now been integrated.
Changeset: 532a0a65
Author: Fernando Guallini <fguallini at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/532a0a65b130e1fbe74ccbd16cdeed258cc2c245
Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
8372950: Pem.pemEncoded should cache the Pattern
Reviewed-by: ascarpino
-------------
PR: https://git.openjdk.org/jdk/pull/28661
More information about the security-dev
mailing list