Bug 232098 - Call to [NSURL URLByAppendingPathComponent:] under NetworkSessionCocoa() may be inefficient
Summary: Call to [NSURL URLByAppendingPathComponent:] under NetworkSessionCocoa() may ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-21 11:47 PDT by Chris Dumez
Modified: 2021-10-21 15:46 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.39 KB, patch)
2021-10-21 11:49 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (3.81 KB, patch)
2021-10-21 11:52 PDT, Chris Dumez
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (3.67 KB, patch)
2021-10-21 12:28 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-10-21 11:47:45 PDT
Call to [NSURL URLByAppendingPathComponent:] under NetworkSessionCocoa() may be inefficient:
WebKit::RemoteNetworkingContext::ensureWebsiteDataStoreSession(WebKit::NetworkProcess&, WebKit::WebsiteDataStoreParameters&&) + 800 (WebKit + 1597076) [0x1bc5e4e94]
                                      453  WebKit::NetworkSessionCocoa::create(WebKit::NetworkProcess&, WebKit::NetworkSessionCreationParameters&&) + 56 (WebKit + 1582260) [0x1bc5e14b4]
                                        453  WebKit::NetworkSessionCocoa::NetworkSessionCocoa(WebKit::NetworkProcess&, WebKit::NetworkSessionCreationParameters&&) + 1420 (WebKit + 1584032) [0x1bc5e1ba0]
                                          453  -[NSURL(NSURLPathUtilities) URLByAppendingPathComponent:] + 168 (Foundation + 223496) [0x19f511908]
                                            453  -[NSURL getResourceValue:forKey:error:] + 120 (CoreFoundation + 449828) [0x19e651d24]
                                              453  CFURLCopyResourcePropertyForKey + 140 (CoreFoundation + 354812) [0x19e63a9fc]
                                                453  _FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, void*, void*, __CFError**, unsigned char) + 232 (CoreServicesInternal + 4296) [0x1a0fcc0c8]
                                                  453  prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 412 (CoreServicesInternal + 16496) [0x1a0fcf070]
                                                    453  corePropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 1236 (CoreServicesInternal + 17868) [0x1a0fcf5cc]
                                                      453  parseAttributeBuffer(__CFAllocator const*, unsigned char const*, unsigned char, attrlist const*, void const*, void**, _FileAttributes*, unsigned int*) + 2944 (CoreServicesInternal + 22124) [0x1a0fd066c]
                                                        453  MountInfoPrepare + 68 (CoreServicesInternal + 23796) [0x1a0fd0cf4]
                                                          453  FSMountPrepare + 76 (CarbonCore + 31128) [0x1a0cda998]
Comment 1 Chris Dumez 2021-10-21 11:49:34 PDT
Created attachment 442053 [details]
Patch
Comment 2 Chris Dumez 2021-10-21 11:52:49 PDT
Created attachment 442054 [details]
Patch
Comment 3 Chris Dumez 2021-10-21 12:28:46 PDT
Created attachment 442057 [details]
Patch
Comment 4 EWS 2021-10-21 15:45:26 PDT
Committed r284651 (243371@main): <https://commits.webkit.org/243371@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 442057 [details].
Comment 5 Radar WebKit Bug Importer 2021-10-21 15:46:17 PDT
<rdar://problem/84526446>