android_packages_modules_Co.../staticlibs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Shai Barack 7c0faeeb68 Replace String.split() with precompiled regex
String.split() will allocate and compile the given regex on every call.
The networkstack process spends 2.8% of cycles doing this.

https://pprof.corp.google.com/?id=%2Fcns%2Fpf-d%2Fhome%2Fandroid-telemetry-pitot-pprof-prod-data-owner%2Fstack_sampling_pprof%2F2025-06-07%2Fstack-sampling-pprof-6187fab4-56da-4842-b9c3-9d8db45801d1.pb.gz&metric=samples&filter=hide:%255Enterp_helper%2524,focus:regex%257Csplit&pivot=com.android.networkstack.com.android.net.module.util.ProcfsParsingUtils

I randomly noticed this while looking at CPU profiles.

Flag: EXEMPT refactor
Test: ApfFilterTest and any others that may be exercising the code
Change-Id: I811c0e8982a87d10fedcda93379b08e8ab38a11b
2025-06-07 19:46:06 -07:00
..
client-libs Inline tetherInterface and untetherInterface 2025-03-07 10:43:17 +08:00
device Replace String.split() with precompiled regex 2025-06-07 19:46:06 -07:00
framework/com/android/net/module/util Merge changes from topic "destroy_socket_at_cs" into main 2025-05-30 16:00:11 -07:00
native Don't crash the system server when a misconfigured agent adds a DSCP policy 2025-03-19 08:24:45 -07:00
netd Add more NativeVpnType AIDL constants for OEM-specific VPNs. 2025-03-18 13:13:31 +09:00
tests/unit Format multidevice tests with pyformat 2025-06-04 14:27:06 +00:00
testutils Force device unroot in the multi-device setup 2025-06-04 14:27:06 +00:00
Android.bp Add socket destroying methods to InetDiagMessage. 2025-05-27 01:35:49 +00:00
jarjar-rules-shared.txt Support both R and S+ in NetworkFactory 2021-07-08 10:20:58 +00:00
TEST_MAPPING Merge remote-tracking branch 'remotes/aosp/tmp_libs_net_move' into libs_net_move_merge 2023-09-11 11:53:46 +09:00