Skip to content

Commit

Permalink
perf: change ConcurrentSkipListMap to ConcurrentHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jun 22, 2024
1 parent c219064 commit 0460290
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

import java.util.LinkedList;
import java.util.Map;
import java.util.concurrent.ConcurrentSkipListMap;
import java.util.concurrent.ConcurrentHashMap;

/**
* @author huangli
*/
class KvImpl {
private final ConcurrentSkipListMap<String, Value> map = new ConcurrentSkipListMap<>();
private final ConcurrentHashMap<String, Value> map = new ConcurrentHashMap<>();
private final LinkedList<Value> needCleanList = new LinkedList<>();

public byte[] get(long index, String key) {
Expand Down

0 comments on commit 0460290

Please sign in to comment.