Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Improvements#161

Merged
MaxXor merged 8 commits intoquasar:masterfrom
yankejustin:Improvements
May 21, 2015
Merged

Improvements#161
MaxXor merged 8 commits intoquasar:masterfrom
yankejustin:Improvements

Conversation

@yankejustin
Copy link
Copy Markdown
Contributor

Exceptions

- Exceptions provide better responses for the server (providing more-accurate status updates). It also makes debugging a bit easier - Add types to serializer faster. When a matching subtype's derived type is found, break out of the loop.

Performance

- Big reduction on memory consumption when using Remote Desktop (for Client). - Faster retrieval of file size.

Break out of the loop when a subtype's derived type is found to match.
FileSplit provides more meaningful exceptions.
Moved string array for file size units to a class-level const string
array for performance.
More meaningful exception is thrown for the Client's Helper class'
GetDiffDesktop method.
Instead of using const, we must use static readonly...
Remote Desktop now leaks significantly less memory on the Client.
GetDiffDesktop was unlocking bits only if an exception was thrown!
It is not GetDiffDesktop's responsibility to dispose of bmpRes. Just
call UnlockBits, then return the Bitmap.
@MaxXor MaxXor merged commit 792a9fc into quasar:master May 21, 2015
@yankejustin
Copy link
Copy Markdown
Contributor Author

As a little note, I would just like to say my goal is to remove every occurrence of the phrase "throw new Exception". I just find it far too broad and meaningless. That will be later, though. :)

@yankejustin yankejustin deleted the Improvements branch May 23, 2015 02:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants