# \[ANN\] LightSumTypes.jl v4

**URL:** <https://discourse.julialang.org/t/ann-lightsumtypes-jl-v4/116741>\
**Category:** Package Announcements\
**Tags:** package, announcement, performance, macros, type-stability\
**Created:** [July 7, 2024, 11:40pm UTC](https://discourse.julialang.org/t/ann-lightsumtypes-jl-v4/116741 "2024-07-07T23:40:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Tortar](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Post date:** [July 8, 2024, 9:18pm UTC](https://discourse.julialang.org/t/ann-lightsumtypes-jl-v4/116741/5 "2024-07-08T21:18:59Z")

</div>

ok, cracked it, simply solved by inlining the function, now

 ![display](https://global.discourse-cdn.com/julialang/original/3X/4/2/42ef278f2556db2f86a14e5f00266b71ccbddd47.png)

I will push the changes soon, I think that maybe inlining big switches can have some compile time increase effects, so maybe an `:aggressive` version in the macro could do that, but not done by default in the future.

---

_[View the full topic](https://discourse.julialang.org/t/ann-lightsumtypes-jl-v4/116741)._
