From: Nils Becker <nils.becker@bioquant.uni-heidelberg.de>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>, becker.nils@gmx.net
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] using React for -- reactions
Date: Tue, 19 Aug 2014 15:13:28 +0200 [thread overview]
Message-ID: <53F34D78.3060806@bioquant.uni-heidelberg.de> (raw)
In-Reply-To: <1B358C457E1445C0A76B9491809C4C6D@erratique.ch>
thanks daniel,
> If it's wide at the *primitive* level then this is a good property
> for performance since an update will have little needless work to do.
> If it is wide just *after* the primitive for no good reason, i.e.
> single primitive with huge number of dependents that filter the
> primitive and then short dependencies, you may want to express the
> first level of dependents as a primitive if the filtering nodes
> entails that only a few of them trigger on an update.
yes, it's wide at the primitive level. initially i did have an E.select
over O(N) events somewhere which slowed it down a lot, but that is
already repaired, as you explain. right now, i should not have any
combinators that filter out a lot of unneccessary dependencies, so that
should be fine.
>
>> bottom line: can a React based simulation possibly compete with
>> manual, in-place update of arrays, let's say within a factor of 2?
>> if yes what do i need to pay attention to?
>
> No idea. Basically you need to pay attention to the topology of your
> graph.
so i guess i need to make the update chains a short as possible. at the
moment, i update the external heap by events which produce (heap ->
heap) updater functions; they each have exactly one daughter event in
which the function is applied to the actual heap. this structure is just
a by-product of how i initialize the simulation. i guess by streamlining
this into just one event i could potentially shorten the dependency
chain and speed it up?
> Is your code published somewhere ?
no, it's pretty messy still. if you'd like to have a look i could put it
on bitbucket..
n.
next prev parent reply other threads:[~2014-08-19 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-19 8:34 becker.nils
2014-08-19 12:27 ` Daniel Bünzli
2014-08-19 13:13 ` Nils Becker [this message]
2014-08-20 9:11 ` Nils Becker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F34D78.3060806@bioquant.uni-heidelberg.de \
--to=nils.becker@bioquant.uni-heidelberg.de \
--cc=becker.nils@gmx.net \
--cc=caml-list@inria.fr \
--cc=daniel.buenzli@erratique.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox