Skip to content

fix: improvements in memory consumption#100

Merged
11 commits merged intowindtf:masterfrom
juev:master
Feb 11, 2024
Merged

fix: improvements in memory consumption#100
11 commits merged intowindtf:masterfrom
juev:master

Conversation

@juev
Copy link
Contributor

@juev juev commented Feb 7, 2024

I think it should help to close #80

juev added 2 commits February 7, 2024 20:17
I think it should help to close #80
- preallocate config slices
- not used interfaces in consumer
- do not allocate new variables in loops
@juev
Copy link
Contributor Author

juev commented Feb 8, 2024

Hi!

The module name has been changed, it doesn't matter, and if there are any problems, let me know, I'll return it back.

The socks5 library used has been changed to a more up-to-date one. We also made a small optimization on the use of variables in loops. As a result, much less memory is consumed and requests are processed faster.

@juev juev changed the title fix: must close the connection after processing fix: improvements in memory consumption Feb 8, 2024
@ghost
Copy link

ghost commented Feb 9, 2024

Thanks for this huge PR. Really appreciate it. I'd review it when I have more bandwidth. Is this PR ready or are there more things to fix?

@juev
Copy link
Contributor Author

juev commented Feb 9, 2024

I just corrected one of the errors that caused multiple http connections to be handled incorrectly. Now I think that everything is correct and can be checked.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

High ram usage

1 participant