Skip to content
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

Merged
merged 9 commits into from
Sep 17, 2023
Merged

Net compression #205

merged 9 commits into from
Sep 17, 2023

Conversation

emneo-dev
Copy link
Contributor

I also made online-mode experimental, because the unstability would just crash directly with the compression.

@emneo-dev emneo-dev self-assigned this Sep 8, 2023
@emneo-dev emneo-dev added the enhancement Enhance the code or enhance functioning label Sep 8, 2023
@emneo-dev
Copy link
Contributor Author

Just need to clean the code real quick and this should be ready to merge :)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 15, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9cce065
Status: ✅  Deploy successful!
Preview URL: https://f6ad96f0.cubic-server.pages.dev
Branch Preview URL: https://net-compression.cubic-server.pages.dev

View logs

@emneo-dev
Copy link
Contributor Author

Ok so it looks like Krypton is incompatible with this implementation of the compression, I have no idea why though :/

Alexandre Flion added 4 commits September 16, 2023 17:59
Also put online-mode in experimental because of how unstable it is
Just need to change add_buffer_to_vector to merge this
Trompettesib
Trompettesib previously approved these changes Sep 16, 2023
Copy link
Member

@Trompettesib Trompettesib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¯\(ツ)

Comment on lines 12 to 13
char current_character = buffer[character_index];
vector.push_back(current_character);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Suggested change
char current_character = buffer[character_index];
vector.push_back(current_character);
vector.push_back(buffer[character_index]);

cubic-server/CompressionUtils.cpp Show resolved Hide resolved
unsigned half_length = size / 2;

unsigned uncompLength = full_length;
char *uncomp = (char *) calloc(sizeof(char), uncompLength);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wsh

Copy link
Contributor Author

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?

Alexandre Flion added 4 commits September 17, 2023 12:16
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
@emneo-dev
Copy link
Contributor Author

emneo-dev commented Sep 17, 2023

Fixed #208 , just a freaking off by one error :)))))))))

Copy link
Member

@Trompettesib Trompettesib left a 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

@emneo-dev emneo-dev merged commit 04371c8 into master Sep 17, 2023
3 checks passed
@emneo-dev emneo-dev deleted the net_compression branch September 17, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance the code or enhance functioning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants