# This file wont precompile

**URL:** <https://discourse.julialang.org/t/this-file-wont-precompile/55362>\
**Category:** Machine Learning\
**Tags:** potential-bug\
**Created:** [February 15, 2021, 11:25pm UTC](https://discourse.julialang.org/t/this-file-wont-precompile/55362 "2021-02-15T23:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevJac](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Post date:** [February 15, 2021, 11:25pm UTC](https://discourse.julialang.org/t/this-file-wont-precompile/55362/1 "2021-02-15T23:25:07Z")

</div>

```julia
using Flux
using Statistics

using Networks

export PolicyNetwork, advantage

...

```

I have this source file in the `src` directory of my project. `src` is in the `JULIA_LOAD_PATH`, but when I attempt to `use Networks` Julia pre-compiles for several minutes and uses up all 16 gigs of my RAM?

---

<div class="post-metadata">

**Author:** ![DevJac](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Post date:** [February 15, 2021, 11:38pm UTC](https://discourse.julialang.org/t/this-file-wont-precompile/55362/2 "2021-02-15T23:38:35Z")

</div>

The file “uses” itself. A recursive import / use. That was the problem.
