Data Duplication

rory's Avatar

rory

25 Feb, 2015 06:17 PM

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

  1. Support Staff 1 Posted by Frederik De Ble... on 25 Feb, 2015 07:21 PM

    Frederik De Bleser's Avatar

    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

  2. 2 Posted by rory on 25 Feb, 2015 08:36 PM

    rory's Avatar

    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:

  3. Support Staff 3 Posted by Frederik De Ble... on 25 Feb, 2015 08:37 PM

    Frederik De Bleser's Avatar

    Nice!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Feb, 2025 11:13 AM
15 Feb, 2025 12:51 PM
06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM

 

30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM
30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM