# Best practice: develop and adjust own package / precompilation

**URL:** <https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656>\
**Category:** New to Julia\
**Tags:** package, precompilation, time\
**Created:** [September 8, 2023, 10:08am UTC](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656 "2023-09-08T10:08:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [September 8, 2023, 1:15pm UTC](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656/8 "2023-09-08T13:15:15Z")

</div>

Glad it helped!

Indeed, Revise.jl cannot track the changes in structs.

To handle this, there are a few workarounds.  
What I prefer is to make a new struct with different names. MyStruct1, MyStruct2.  
Like this I can still test the previous versions.

Other people prefer to use named tuples until they are satisfied with the result and then change to structs.

Here is one of the many discussions on Revise.jl and structs:

> [@Thoughts and tempering expectations on redefining structs](https://discourse.julialang.org/t/thoughts-and-tempering-expectations-on-redefining-structs/101190):
>
> TLDR: musings on how redefining structs cannot be as convenient as we’d like, nothing really important so feel free to ignore this thread Overoptimistic expectations We enjoy the interactivity and incremental code modifications that a dynamic language offers, and Julia’s multimethods achieve a particular kind of intermodule composability, if we sensibly avoid type piracy. But while we can add or replace methods in a function and invalidate its callers to adjust, we cannot change anything withi…

---

_[View the full topic](https://discourse.julialang.org/t/best-practice-develop-and-adjust-own-package-precompilation/103656)._
