Github user kocolosk commented on the pull request:
https://github.com/apache/couchdb-fabric/pull/43#issuecomment-201830063
This all looks correct, but ... wow, it sure would be nice to have a dict
where we could override the key comparator. It's tempting to consider a version
where we just use a sorted list (basically an `orddict`) instead of `dict`. The
two data structures are comparable in performance for ~100 elements or less,
and the fetch operation for an `orddict` is trivial:
```
fetch(Key, [{K,_}|D]) when Key > K -> fetch(Key, D);
fetch(Key, [{K,Value}|_]) when Key == K -> Value.
```
Some other time perhaps.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---