You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
[analyzer] Use set instead of list for _contextPathList where .add was guarded by .contains
Doing .contains on a list of n items takes O(n) time.
While - with the ~1600 files in the list when having the analyzer
looking at pkg/analysis_server - going a lookup for all entries will
only take ~10 ms I see no reason not to use a Set.
Change-Id: I2a0848616381203c9b86fc9da8b4d065e391175f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271363
Commit-Queue: Jens Johansen <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
0 commit comments