_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> 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> 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> 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