Java Class in modules

That is a lot of traits in a single piece. I find it hard to come up with a situation where one would ever need that many traits in a single piece, unless one is implementing something very very complicated. Most likely, there is another way to implement what you are trying to achieve. Perhaps you could give an outline for the reason you need that many traits.

See also recent thread Improve execution speed - @steenkh had similar issues as you do.

Custom code isn’t always the solution to a problem - often the problem lies in the implementation strategy.

That depends very much on what it is you are trying to achieve.

If you can provide your module - as @uckelman hinted at - we may be able to give you more information.

Yours,
Christian