performance improvement for queries with wildcards
Computing the union of many LongLists was inefficient, because we were using a trivial algorithm. I replaced the algorithm with a multi way merge. The old algorithm had a runtime of O(n!*m) where n is the number of lists and m the length or the longest list. The new algorithm has a runtime of O(log(n) * n*m).
This commit is contained in:
@@ -36,7 +36,7 @@ ext {
|
||||
lib_log4j2_core = "org.apache.logging.log4j:log4j-core:${version_log4j2}"
|
||||
lib_log4j2_slf4j_impl = "org.apache.logging.log4j:log4j-slf4j-impl:${version_log4j2}"
|
||||
|
||||
lib_primitive_collections='org.lucares:primitiveCollections:0.1.20191226154550'
|
||||
lib_primitive_collections='org.lucares:primitiveCollections:0.1.20201115124106'
|
||||
|
||||
lib_spring_boot_log4j2="org.springframework.boot:spring-boot-starter-log4j2:${version_spring}"
|
||||
lib_spring_boot_test="org.springframework.boot:spring-boot-starter-test:${version_spring}"
|
||||
|
||||
Reference in New Issue
Block a user