Skip to content

Commit dcf0f90

Browse files
authored
Remove redundant precompile_static_references tweak (#538)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent e9e4cc5 commit dcf0f90

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/compiler/compile.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ auto compile(const sourcemeta::core::JSON &schema,
177177
std::vector<std::tuple<std::string_view, std::size_t, std::size_t>>
178178
sorted_precompile_references;
179179

180-
if (effective_tweaks.precompile_static_references) {
180+
if (effective_tweaks.precompile_static_references_maximum_schemas > 0) {
181181
std::unordered_map<std::string_view, std::pair<std::size_t, std::size_t>>
182182
static_reference_destinations;
183183
for (const auto &reference : frame.references()) {

src/compiler/include/sourcemeta/blaze/compiler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ enum class Mode : std::uint8_t {
8484
/// @ingroup compiler
8585
/// Advanced knobs that you can tweak for higher control and optimisations
8686
struct Tweaks {
87-
/// Attempt to precompile static references to speed up compilation
88-
bool precompile_static_references{true};
8987
/// Consider static references that are not circular when precompiling static
9088
/// references
9189
bool precompile_static_references_non_circular{false};

0 commit comments

Comments
 (0)