Skip to content

Commit 5b8f9af

Browse files
fingolfinmortenpi
authored andcommitted
Fix performance regression in clear_modules! (#2685)
(cherry picked from commit 3684e46)
1 parent e9238e7 commit 5b8f9af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## Unreleased
77

8-
## Fixed
8+
### Fixed
99

1010
* `@meta`, `@setup`, and `@docs` blocks no longer generate spurious entries in the search index. ([#1929], [#2675])
11+
* 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. ([#2685])
1112

1213
## Version [v1.10.1] - 2025-03-31
1314

src/expander_pipeline.jl

-1
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)