faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
_whitelogger has joined #amber
_whitelogger has joined #amber
<FromGitter> <rukkiddo> app_1 | 2020-12-25T19:24:40.434844Z INFO - watch.run: Compiled in 00:00:29.076276561
<FromGitter> <rukkiddo> currently my project takes 30 seconds to build after a simple change (just white space added for test purpose)
<FromGitter> <rukkiddo> is this normal? how much yours take?
<FromGitter> <Blacksmoke16> does it also take that long if you do another change?
<FromGitter> <rukkiddo> now I added just oneline: ⏎ ⏎ ``` p "sa"``` ⏎ ⏎ to a controller and result is: ... [https://gitter.im/amberframework/amber?at=5fe63f3697312f4b6bed3a88]
<FromGitter> <rukkiddo> 35 second
<FromGitter> <Blacksmoke16> and i assume thats not building in release mode?
<FromGitter> <Blacksmoke16> compile times are one of the downsides of crystal, which has been getting slower over time
<FromGitter> <rukkiddo> yeah dev mode, also it was in docker i will try natively now and write the result
<FromGitter> <rukkiddo> 10:39:56 watch.run (Info) Compiled in 00:00:25.698064014
<FromGitter> <rukkiddo> this is the result without docker
<FromGitter> <rukkiddo> so this is expected behavior when you project grows right?
<FromGitter> <rukkiddo> but still I am not comfortable with 25 for slight changes
<FromGitter> <Blacksmoke16> it also prob depends on what exactly the program/framework is doing
<FromGitter> <Blacksmoke16> large type unions and excessive macro use are usually the bigger factors
<FromGitter> <Blacksmoke16> there are issues/forum threads bout it
<FromGitter> <rukkiddo> I understand, I actually have a macro
<FromGitter> <rukkiddo> macro get_prop(propname) ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ end [https://gitter.im/amberframework/amber?at=5fe6410ede6081431542ed39]
<FromGitter> <rukkiddo> I dont know why I wrote it it looks silly
<FromGitter> <rukkiddo> I will check more
<FromGitter> <Blacksmoke16> i make excessive use, having macros like that are prob not a big factor
<FromGitter> <rukkiddo> under dist folder I have huge assets, amber would amber check anything from here while compiling?
<FromGitter> <rukkiddo> public/dist I mean maybe dist is not a default folder
<FromGitter> <Blacksmoke16> not sure
<FromGitter> <rukkiddo> $ du -hs . ⏎ 898M.
<FromGitter> <rukkiddo> hmm not cool, I will try to move these out and check again
<FromGitter> <Blacksmoke16> llvm is the main slow thing
<FromGitter> <Blacksmoke16> i.e. in last year has prob been 4 major versions of it, LLVM11 is the latest
<FromGitter> <rukkiddo> I understand
<FromGitter> <rukkiddo> btw, I cleaned every asset more than a mb from public & src/assets
<FromGitter> <rukkiddo> 2020-12-25T19:56:17.820033Z INFO - watch.run: Compiled in 00:00:16.829713202
<FromGitter> <rukkiddo> not any code obviously
<FromGitter> <rukkiddo> just images, fonts and audio
<FromGitter> <rukkiddo> btw just asking out of curiosity, do you have an amber project & how much does it take you to compile
<FromGitter> <rukkiddo> after slight changes
<FromGitter> <Blacksmoke16> i do not
<FromGitter> <Blacksmoke16> wonder if the cache dir isnt in the container or something so its always cold
<FromGitter> <Blacksmoke16> `time crystal eval --release --stats --progress 'gets.not_nil!.to_i64'`
<FromGitter> <Blacksmoke16> first run is like 24s, then future ones are like 2
<FromGitter> <Blacksmoke16> nvm, thats if you dont change anything
<FromGitter> <rukkiddo> I run that but it is stuck at: ⏎ Codegen (bc+obj): ⏎ ⏎ 1) no previous .o files were reused [https://gitter.im/amberframework/amber?at=5fe6461869ee7f0422c32174]
<FromGitter> <rukkiddo> Unhandled exception: Invalid Int64: (ArgumentError)
<FromGitter> <rukkiddo> real 2m29.376s ⏎ user 0m16.610s ⏎ sys 0m0.290s
<FromGitter> <rukkiddo> It continued when I pressed enter or maybe coincidence
<FromGitter> <rukkiddo> I run again, same error but: ⏎ real 0m2.538s ⏎ user 0m1.081s ⏎ sys 0m0.196s [https://gitter.im/amberframework/amber?at=5fe6469bc746c6431cd7ac06]