From b269a1c614c6ebf9d6406793f0695425f3a6a06b Mon Sep 17 00:00:00 2001 From: Steve Cohen Date: Wed, 22 Apr 2026 10:08:44 -0700 Subject: [PATCH] [perf] Remove ensure_compiled when building the module store Calling ensure compiled on every module in the system takes a very long time on most projects, and it's not clear why this is necessary unconditionally on startup. --- lib/elixir_sense/providers/plugins/module_store.ex | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/elixir_sense/providers/plugins/module_store.ex b/lib/elixir_sense/providers/plugins/module_store.ex index dd645076..4ef330a3 100644 --- a/lib/elixir_sense/providers/plugins/module_store.ex +++ b/lib/elixir_sense/providers/plugins/module_store.ex @@ -69,7 +69,6 @@ defmodule ElixirSense.Providers.Plugins.ModuleStore do Applications.get_modules_from_applications() |> Enum.filter(fn module -> try do - _ = Code.ensure_compiled(module) function_exported?(module, :module_info, 0) rescue _ ->