Revert "Experiment with temporary us eof ETS table"

This reverts commit 2a106d0dc5.
This commit is contained in:
martinsumner 2016-12-13 20:24:29 +00:00
parent 2a106d0dc5
commit baf4ca252f

View file

@ -102,16 +102,14 @@ check_index(Hash, L0Index) ->
to_list(Slots, FetchFun) -> to_list(Slots, FetchFun) ->
SW = os:timestamp(), SW = os:timestamp(),
Tab = ets:new(temp_l0, [private, ordered_set]), SlotList = lists:reverse(lists:seq(1, Slots)),
SlotList = lists:seq(1, Slots), FullList = lists:foldl(fun(Slot, Acc) ->
lists:foreach(fun(Slot) -> Tree = FetchFun(Slot),
Tree = FetchFun(Slot), L = leveled_skiplist:to_list(Tree),
L = leveled_skiplist:to_list(Tree), lists:ukeymerge(1, Acc, L)
ets:insert(Tab, L) end,
end, [],
SlotList), SlotList),
FullList = ets:tab2list(Tab),
true = ets:delete(Tab),
leveled_log:log_timer("PM002", [length(FullList)], SW), leveled_log:log_timer("PM002", [length(FullList)], SW),
FullList. FullList.