foam-framework / foam2

FOAM: Feature-Oriented Active Modeller, Version 2
Apache License 2.0
73 stars 63 forks source link

QuickSink #65

Closed jacksonic closed 8 years ago

jacksonic commented 8 years ago

Create a QuickSink with put/remove/error/eof/reset as function properties to allow inline sinks that still extend AbstractSink

jacksonic commented 8 years ago

This can be optimized with a pseudo-flyweight style like MDAO's index and tree nodes. A singleton-like QuickSink could proto POSJO children to itself, that contain the function properties. Only try this if performance might be a problem.