-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace khash with maps in ddoc_cache_lru
This is a companion PR to the previous one for couch_event_server [1]. Implementation notes: * Some functionality was moved to helper functions (do_refresh, get_entries) * The main concern was to make sure to return the updated map object, when before we just returned `ok`. * ddoc_cache_lru already had an almost 100% test coverage so opted to rely those tests. * Performance with maps seems to at least as good or better than with the khash nif [2]. [1] #4977 [2] https://gist.github.com/nickva/06f1511b7f9d0bbc2d9a0dfc2d36779e
- Loading branch information
Showing
16 changed files
with
78 additions
and
2,649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,6 @@ defmodule CouchDBTest.Mixfile do | |
"proper", | ||
"mochiweb", | ||
"meck", | ||
"khash", | ||
"hyper", | ||
"fauxton" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.