| Priority | medium |
|---|---|
| Bug ID | 56142 |
| CC | syncevolution-issues@syncevolution.org |
| Assignee | patrick.ohly@intel.com |
| Blocks | 56141 |
| Summary | PIM API: limit number of search results |
| Severity | enhancement |
| Classification | Unclassified |
| OS | All |
| Reporter | patrick.ohly@gmx.de |
| Hardware | Other |
| Status | ASSIGNED |
| Version | unspecified |
| Component | SyncEvolution |
| Product | SyncEvolution |
A natural and useful extension of the API is a way to limit the number of search results. FilteredView then can stop checking more candidates, which avoids excessive CPU (and to some extend, memory) usage when many contacts match a filter. One corner case is when one of the matched contacts falls out of the result list (removed, updated): then the number of results is reduced and more candidates must be checked to reach the desired number again.