Skip to content

[SR-2410] Make swift-demangle IO incremental #45017

@belkadan

Description

@belkadan
Previous ID SR-2410
Radar rdar://problem/23432183
Original Reporter @belkadan
Type Improvement
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, StarterBug
Assignee @keith
Priority Medium

md5: ccfb25249b3f6f0b550471caa96d6f04

Issue Description:

When you type:

$ xcrun swift-demangle
< input1
< input2
< Ctrl+D
> output1
> output2

You don’t get any output until you Ctrl+D to close the stream. Could we make swift-demangle incremental line by line (or \0 by \0 if needed)? I.e.:

$ xcrun swift-demangle
< input1
> output1
< input2
> output2
< Ctrl+D

This would have general memory usage and performance goodness for piped code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions