Skip to content

Commit

Permalink
trim is O(N) but N is the removed piece not the remaining one
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando 'Brujo' Benavides committed Dec 12, 2011
1 parent ff94e14 commit 43f4e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/benchmarks/lists_bench.erl
Expand Up @@ -212,7 +212,7 @@ lset([Key|_]) ->
ltrim([Key|_]) ->
edis_db:run(
edis_db:process(0),
#edis_command{cmd = <<"LTRIM">>, args = [?KEY, 0, edis_util:binary_to_integer(Key)],
#edis_command{cmd = <<"LTRIM">>, args = [?KEY, edis_util:binary_to_integer(Key), -1],
group = lists, result_type = ok}).

-spec rpop([binary()]) -> binary().
Expand Down

0 comments on commit 43f4e73

Please sign in to comment.