WPS cancelling output stream ends up writing a single byte at a time

Description

This is due to a design issue in the base FilterOutputStream, it turns a call to write(byte[], int, int) into n calls to write(int)... which is a performance killer. We have to dodge that super method and delegate directly to the wrapped output stream instead.

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure