The GitHub Actions job "Pull Requests" on pekko.git/perf/arrays-copyOf has failed. Run started by GitHub user He-Pin (triggered by He-Pin).
Head commit for run: eb444567d05124c5965783eb04ccfbd9799ec4a1 / θιΈ£ <[email protected]> perf: use Arrays.copyOf/copyOfRange instead of manual new Array + arraycopy Motivation: Several places allocate a new array then immediately copy from an existing array using System.arraycopy. java.util.Arrays.copyOf and copyOfRange combine allocation and copy in a single call that the JIT can intrinsify more effectively. Modification: - ByteString.scala: 3 sites β clearTemp, resizeTemp, fromArray replace new Array[Byte] + System.arraycopy with java.util.Arrays.copyOf / copyOfRange - ImmutableLongMap.scala: replace full array copy with values.clone() - SnapshotSerializer.scala: replace partial copy with java.util.Arrays.copyOfRange Result: Fewer lines, potentially faster due to JIT intrinsification of the combined allocate+copy operation. ByteString builder operations benefit most as they are in frequently-called paths. Tests: sbt "actor/compile" "remote/compile" "persistence/compile" β passed References: Refs #3136 Report URL: https://github.com/apache/pekko/actions/runs/28003380462 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
