Skip to content

Commit 3684e46

Browse files
authored
Fix performance regression in clear_modules! (JuliaDocs#2685)
1 parent 10c41a5 commit 3684e46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
* Added anchor links to admonition blocks, making it possible to create direct links to specific admonitions. ([#2505], [#2676])
1111
* Added different banners for dev and unreleased docs ([#2382], [#2682])
1212

13-
## Fixed
13+
### Fixed
1414

1515
* `@meta`, `@setup`, and `@docs` blocks no longer generate spurious entries in the search index. ([#1929], [#2675])
16+
* Fixed a performance regression introduced in v1.10.0 as part of the code clearing out the sandbox modules to save memory and caused by calling `GC.gc()` too often.
1617

1718
## Version [v1.10.1] - 2025-03-31
1819

src/expander_pipeline.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ function clear_modules!(d::Dict{Symbol, Any})
2424
startswith(String(k), "__atexample__") || continue
2525
v isa Module && clear_module!(v)
2626
end
27-
GC.gc()
2827
return
2928
end
3029

0 commit comments

Comments
 (0)