multiple changes:

- reorder exception throwing to be sync to band position
- document WriteBuffer._innerWrite
- remove any declarations
- remove conditional assigments
- use faster return value branching in all parsers
- remove dead code in benchmark
This commit is contained in:
Jörg Breitbart
2021-02-27 20:18:41 +01:00
parent 26bf1ab840
commit cc005a274d
6 changed files with 111 additions and 81 deletions
-22
View File
@@ -44,28 +44,6 @@ perfContext('Terminal: ls -lR /usr/lib', () => {
}
});
// perfContext('write/string/sync', () => {
// let terminal: Terminal;
// before(() => {
// terminal = new Terminal({cols: 80, rows: 25, scrollback: 1000});
// });
// new ThroughputRuntimeCase('', () => {
// terminal.writeSync(content);
// return {payloadSize: contentUtf8.length};
// }, {fork: false}).showAverageThroughput();
// });
//
// perfContext('write/Utf8/sync', () => {
// let terminal: Terminal;
// before(() => {
// terminal = new Terminal({cols: 80, rows: 25, scrollback: 1000});
// });
// new ThroughputRuntimeCase('', () => {
// terminal.writeSync(content);
// return {payloadSize: contentUtf8.length};
// }, {fork: false}).showAverageThroughput();
// });
perfContext('write/string/async', () => {
let terminal: Terminal;
before(() => {