[Swift-devel] Streams

Ben Clifford benc at hawaga.org.uk
Mon Apr 30 14:16:49 CDT 2012


There's been some discussion about streaming data in the past.

At a high level, you could have an array that never closes, and over time keeps filling up with more elements as they are delivered. Then you could run a regular foreach over that array, and processing would happen as it happen.

At a lower level, that's probably really difficult to make work well with the present implementation - I think you would end up filling up memory pretty fast, because there's no mechanism to forget fully processed data...

-- 




More information about the Swift-devel mailing list