seyyed / scalaris

Automatically exported from code.google.com/p/scalaris
Apache License 2.0
0 stars 0 forks source link

Possible small speedup for get_range/3? #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would it speed up and also not break anything to change:

src/db_generic_ets.hrl:
--- case util:is_between(From, Key, To) andalso Value =/= empty_val of
+++ case Value =/= empty_val andalso util:is_between(From, Key, To) of

...as comparing two values should be quicker than checking interval ranges?
(Same would apply for get_range_with_version)

Original issue reported on code.google.com by Uwe.Daue...@gmail.com on 12 Apr 2010 at 9:44

GoogleCodeExporter commented 8 years ago
Thanks, done.

Original comment by schin...@gmail.com on 13 Apr 2010 at 8:36