| 477 | # TODO select_on_size_only may need to get re-evaluated, it is likely that swapping the value |
| 478 | # of select_on_size_only for key and value gives better results |
| 479 | class AlgorithmDeviceScanByKey(Algorithm): |
| 480 | algorithm_name = "device_scan_by_key" |
| 481 | cpp_configuration_template_name = "scanbykey_config_template" |
| 482 | config_selection_params = [ |
| 483 | SelectionType(name="key_type", is_optional=False, select_on_size_only=False), |
| 484 | SelectionType(name="value_type", is_optional=False, select_on_size_only=True)] |
| 485 | def __init__(self, fallback_entries): |
| 486 | Algorithm.__init__(self, fallback_entries) |
| 487 | |
| 488 | class AlgorithmDeviceBinarySearch(Algorithm): |
| 489 | algorithm_name = "device_binary_search" |
no test coverage detected