# Handy Script finding non-isbits fields

**URL:** https://discourse.julialang.org/t/handy-script-finding-non-isbits-fields/47402
**Category:** General Usage
**Tags:** performance
**Created:** [September 28, 2020, 12:20pm UTC](https://discourse.julialang.org/t/handy-script-finding-non-isbits-fields/47402 "2020-09-28T12:20:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [September 28, 2020, 12:20pm UTC](https://discourse.julialang.org/t/handy-script-finding-non-isbits-fields/47402/1 "2020-09-28T12:20:44Z")

</div>

For performance optimization it is useful for your types to be `isbits`.  
But you can’t be `isbits` if you have any fields that are not.

I made a quick script for tracking them down  
It turned out to need to be more complex than i thought so I am sharing it here

> <https://gist.github.com/oxinabox/b560457bacd9129248aa483488dc8943>

It should be fairly obvious that it is a bit of a hack, esp with how it handles Vectors and Dictionries,  
but i think it is a hack that you could customize for your needs also

It’s outputs look something like:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/5/5593c4526f043964e820a5b317f2e935a9823c79.png)

---

<div class="post-metadata">

### Author: ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)
#### Post date: [September 28, 2020, 1:59pm UTC](https://discourse.julialang.org/t/handy-script-finding-non-isbits-fields/47402/2 "2020-09-28T13:59:23Z")

</div>

There is some reason for you to delete the gist from the post message?

---

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [September 28, 2020, 2:24pm UTC](https://discourse.julialang.org/t/handy-script-finding-non-isbits-fields/47402/3 "2020-09-28T14:24:21Z")

</div>

oops. Fixed
