The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

Data Duplication

3 replies Last reply

  1. I am experiencing a very weird issue. I am relatively new to Nodebox 3, but I am have got a pretty good grip I think.

    When grouping nodes together to form a network, the data is being duplicated many thousands of times. To be clear the network works fine, with the correct amount of data output. Then taking no other action than grouping it to a new network, the data becomes unmanageably slow.

    I am running node box on a Mac Book Pro with Yosemite. I am new to Mac (like as of yesterday) and I never experienced this before on my PC. Any ideas?

    Thanks

    Copy link
  2. NodeBox team

    You've encountered list matching!

    Grouping a network doesn't simply group the data. It creates a function that loops over all the input data you give it. So if you have, say, a list of 100 random numbers connected to a network containing a single rectangle, the network will be executed 100 times, each with the same single rectangle.

    This behaviour is actually quite useful since it allows you to put separate functionality in subnetworks. We use it for example to create a single element of a data visualisation, then having that element repeated for each input row of the visualisation.

    For more info on list matching and other NodeBox concepts, you can read the "how NodeBox works" page.

    Hope that helps,

    F

    Copy link
  3. Thanks I am familiar with the looping element, and find it extremely useful! I found a work around. I'm perfectly sure you are right, I just need to digest it I guess. Anyway, this was the result: Cycle Flows on the TFL Road Network:

    Copy link
  4. NodeBox team

    Nice!

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply