Code help Artnet two universe

I want to get started on a multi-universe artnet to WS adaptor very soon
Having read about Artnet and taken some advice I am wondering the following...

Is the number of universes really dictating the amount of ram required ?

  1. Read&Buffer Artnet packet data into an array, eg data[buffer=0][packetsize]

  2. Change buffer to 1

  3. Output data[buffer=0][512ChannelsOnly] directly onto the WS output pin
    (the output pin is related to the universe value that is detailed inside the packet)

  4. Read&Buffer Artnet packet data into an array, eg data[buffer=1][packetsize]

  5. Change buffer to 0

  6. Output data[buffer=1][512ChannelsOnly] directly onto the WS output pin
    (the output pin is related to the universe value that is detailed inside the packet)

  7. go back to 1

So effectively, artnet read will bounce back and forth between buffer0 and buffer1, although there could be more than 2 universes being output (say 8) but still only ever using the same buffers, thus saving ram

Once the data has been output to the WS devices it is not needed anymore
The only downside to this is that sequential universes are output as sequential packets over artNet, so the time between packets may be minimal, and perhaps too short to process the 512 byte "WS Write" (which is about 5ms)