-
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
Performance improvement #42
Conversation
Codecov Report
@@ Coverage Diff @@
## master #42 +/- ##
==========================================
- Coverage 61.58% 61.37% -0.22%
==========================================
Files 2 2
Lines 315 321 +6
==========================================
+ Hits 194 197 +3
- Misses 121 124 +3
|
Hey @lopuhin , in this PR, I have successfully increased the performance of
These have brought significant increase to the performance of |
For some reason the cgurl.cpp is conflicted with the one from master branch... |
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.
@nctl144 the changes look good to me, nice job 👍
But the build failed, can you have a look?
benchmarks/canonicalize_test.py
Outdated
@@ -13,7 +13,7 @@ def main(): | |||
time = 0 | |||
time_canonicalize_url = 0 | |||
|
|||
tar = tarfile.open("sites.tar.gz") | |||
tar = tarfile.open("benchmarks/sites.tar.gz") |
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.
Completely unrelated, but do you recall why we don't we use the same chromium urls here as well?
@@ -85,7 +76,7 @@ cdef bytes unicode_handling(str): | |||
bytes_str = <bytes>str | |||
return bytes_str |
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.
I'm curious how this works: we have cdef bytes bytes_str
above and return it from the function, but return type of the function is char *
- is this correct?
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.
Never mind, looks like Cython indeed does this conversion automatically.
Hey @lopuhin , I have cleaned up the code even further by moving all the canonicalize code to |
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.
Hey @nctl144 the changes look good but the build is failing (for a different reason), can you have a look at it?
Hey @lopuhin , yeah sorry about that... I did not notice yesterday 😄 I just fixed it and the build is green now |
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.
Thanks @nctl144 , looks good! 👍
This PR aims to improve the performance of SCURL