Invention Grant
- Patent Title: Fast flattening of nested streams
- Patent Title (中): 嵌套流快速展平
-
Application No.: US10778793Application Date: 2004-02-13
-
Publication No.: US07937694B2Publication Date: 2011-05-03
- Inventor: Henricus Johannes Maria Meijer , Wolfram Schulte
- Applicant: Henricus Johannes Maria Meijer , Wolfram Schulte
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Agency: Klarquist Sparkman, LLP
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45

Abstract:
Techniques and tools are described for flattening nested streams. For example, a stream flattening tool processes nested streams on a stack to traverse the nested streams. The tool produces a flattened stream that enumerates the elements of the nested streams. In one embodiment, the tool initially pushes a stack frame onto the stack for a stream representing all of the nested streams. As the tool iterates across the “active” stream having the frame on the top of the stack, the tool may encounter and produce elements in the “active” stream. Or, the tool may encounter a nested stream and push a stack frame for the nested stream onto the stack, then continuing by iterating across the new active stream. The tool pops the stack frame for the active stream from the stack when the end of the stream is reached, or potentially earlier if handling a nested tail stream.
Public/Granted literature
- US20050183058A1 Fast flattening of nested streams Public/Granted day:2005-08-18
Information query