cjk
Hi there,
I am currently working on a Forum/community system in Elixir using Phoenix. First everything was nice, but slowly the compile times increased. It got so bad that now small changes can take up to 30 seconds.
I already read about compile dependencies and stuff, but I can’t really make sense of tools like mix xref. The generated graphic is unusable (image viewers seem not to be able to show the image) and the tree/stats views are confusing to me.
I already tried to fight this problem by stripping out imports and requires, and it made things better – but by far not good.
Can somebody point me to resources explaining how to use tools like mix xref or explain me what I am doing wrong?
My project is a FLOSS and hosted on Github: https://github.com/ckruse/cforum_ex/
Edit: also please don’t mince matters. If you think I am using anti patterns and thus causing this problem myself, tell me. I can handle that and love to learn.
Thanks in advance,
CK
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hlx
Did you try deleting the
_buildfolder? Whenever I have the slightest problem I always first delete_build,depsand.elixir_lscjk
Yes, did that. Doesn’t change anything.
kwando
I get this while trying to run build it:
hlx
Just run
touch config/appsignal.exscjk
Ah, right - you have to create a
appsignal.exs, this file contains secrets and thus is not in the repo. A simpleuse Mix.Configin this file should be enough.hlx
I’ve cloned your app and it seems to compile at the same speed as my own projects
https://asciinema.org/a/2N1DeYHwWBbrXbJxlM9hJRTca
cjk
And now change e.g.
lib/cforum_web/layout/app.html.eexand watch getting a whole bunch of files recompiledhlx
Elixir files or assets? I can’t seem to run the migrations and therefor not the app so I can’t really check.
cjk
No, assets are in the webpack domain. Elixir files (
.exor.eex).You can check w/o running the migrations by using
mix compilewithout callingmix cleanbefore.hlx
EDIT: didn’t read the previous message correctly, will check now with mix compile