-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement most of the suggestions by @letmutx.
- In ascii::gets, instead of building a string, use BufWriter. Also remove unnecessary allocation. There is some necessary allocation due to the signature of the method. We want to maintain the signature. - Don't add unnecessary indentation just to drop variables. Instead, use drop() or avoid creating variables that need to be dropped. - Reworked the way we collect pipelined responses from the server. Now there's a simple ``final_result`` var and we update that var for each result. - Handle recoverable errors differently from unrecoverable errors. Exit fast on most errors, since they're unrecoverable, but collect all responses on CommandError, since CommandError means we got a full response.
- Loading branch information
Showing
2 changed files
with
121 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters