mogge
moinzy
Morning
morning
Good Morning!
m0gguh
ok, n00b question... I have a reagent app and I want to do an HTTP call when I load my component... But when I do it in the render call it doesn't really work... so how do I make an http call (in normal react it would componentDidMount
or something like that... but what is the equivalent in Reagent?
:component-did-mount
:)
See the docs for r/create-class
aah so I create a class with a didmount
func and a render
func?
http://reagent-project.github.io/docs/master/reagent.core.html#var-create-class
so yes, but you didn't spell those keys right
I know... just trying to type on a Friday afternoon. and thank you!
so this change did the lion's share of work in making my 1hour single threaded code take 4 minutes on a 16 core machine: https://github.com/MastodonC/witan.send/blob/30d009a3b12009b1ae05bf8debfbcfc7622b9aa4/src/clj/witan/send/model/run.clj#L198-L226
pretty pleased with it
I just wish I had the time to stream the results down to the various things making data products as I could keep the memory pressure massively down too. atm I'm realising the whole sequence
the code in the into
and the let
do the same thing
(this kind of change is why I keep on pushing at it)
That's awesome.
I wonder what you'd do with a 5950 in your hands...
I'm running it on an Intel nuc 16 core Xeon with 64gb ram atm. That box looks good.
just ran it on my 4 core 16GB xps 13 (a few generations old) and it ran in 12 minutes with 12GB Xmx on Java 1.8 (I was running 1.11 on the NUC). So I'm pretty happy with that too. 🙂
I like that it runs a lot faster and that being able to throw more cores and RAM at it makes a difference