Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Use 64K page size for jemalloc on arm64 / linux.

Kishore Nallan36056fe68e23
diff --git a/bazel/jemalloc.BUILD b/bazel/jemalloc.BUILD
index 7bc067c4..4f540348 100644
--- a/bazel/jemalloc.BUILD
+++ b/bazel/jemalloc.BUILD
@@ -8,6 +8,14 @@ filegroup(
visibility = ["//visibility:public"],
)
+config_setting(
+ name = "linux_arm64",
+ constraint_values = [
+ "@platforms//os:linux",
+ "@platforms//cpu:arm64",
+ ],
+)
+
configure_make(
name = "jemalloc",
args = ["-j8"],
@@ -18,6 +26,10 @@ configure_make(
},
"//conditions:default": {},
}),
+ configure_options = select({
+ ":linux_arm64": ["--with-lg-page=16"],
+ "//conditions:default": [],
+ }),
lib_source = ":all_srcs",
out_include_dir = "include/jemalloc",
out_static_libs = ["libjemalloc.a"],