-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Net compression #205
Net compression #205
Conversation
Just need to clean the code real quick and this should be ready to merge :) |
Deploying with Cloudflare Pages
|
Ok so it looks like Krypton is incompatible with this implementation of the compression, I have no idea why though :/ |
Also put online-mode in experimental because of how unstable it is
Just need to change add_buffer_to_vector to merge this
ef77de9
to
ef30ce9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¯\(ツ)/¯
cubic-server/CompressionUtils.cpp
Outdated
char current_character = buffer[character_index]; | ||
vector.push_back(current_character); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
char current_character = buffer[character_index]; | |
vector.push_back(current_character); | |
vector.push_back(buffer[character_index]); |
cubic-server/CompressionUtils.cpp
Outdated
unsigned half_length = size / 2; | ||
|
||
unsigned uncompLength = full_length; | ||
char *uncomp = (char *) calloc(sizeof(char), uncompLength); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wsh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is wrong with it?
It looks like it is the default on many implementations. It needs to be measured if it is the best for us later.
Just use std::vector::insert xd
istg obo are the worst kind of errors there is
Fixed #208 , just a freaking off by one error :))))))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me on my network and my computers
I also made online-mode experimental, because the unstability would just crash directly with the compression.