New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592537 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit 28 days ago
Closed: Mar 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

FeatureProvider returns std::map to find Feature* as O(1)

Project Member Reported by lima...@gmail.com, Mar 7 2016

Issue description

From Dispatcher::UpdateBindingsForContext,

api_feature_provider->GetAllFeatureNames() is called and call api_feature_provider->GetFeature(api_name);

Because GetAllFeaturenames returns std::vector, Time complexity is O(n) to call GetFeature(api_name).

I think we can return std::map to get Feature* as O(1).

 

Comment 1 by lima...@gmail.com, Mar 7 2016

Labels: -Pri-2 Pri-3

Comment 3 by lima...@gmail.com, Mar 8 2016

Status: Fixed (was: Assigned)

Sign in to add a comment