-
Notifications
You must be signed in to change notification settings - Fork 20
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
improve performance #1
Comments
@ole108 How are you getting on with this? |
@matryer Sorry Mat but I got a bit stuck with it. Then I forked httptreemux instead and tried to refactor it until the interface would match. But I got stuck there, too. A month ago I started a new job and consequently don't have got much time for it now. |
No problem Ole - it's just an interesting side problem. No real pressure to get it done.
Thanks anyway
Mat
… On 18 Sep 2017, at 09:12, Ole Bulbuk ***@***.***> wrote:
@matryer Sorry Mat but I got a bit stuck with it.
I tried first to take httptreemux (it already has got many of the nice things we want and the original from Julien Schmidt doesn't got) and cut code from there and paste it into way. Unfortunately it was quite impossible to make ends meet.
Then I forked httptreemux instead and tried to refactor it until the interface would match. But I got stuck there, too.
A month ago I started a new job and consequently don't have got much time for it now.
I suppose one would have to only look at code from other routers but shouldn't try to copy much.
I really hoped it would be much easier.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sorry for resurrecting an old issue, but does anyone have a benchmark of the current state of the router? How bad/good is the performance right now? |
Thanks for your comment.
Router performance isn’t considered an important metric in the wider
context of where it is used in real world applications, so we don’t give it
much time or attention. There is an idea to use a tree to lookup the routes
which would be faster but it’s more of an intellectual exercise rather than
an important priority.
Mat
…On Sun, 14 Oct 2018 at 13:26, Alex ***@***.***> wrote:
Sorry for resurrecting an old issue, but does anyone have a benchmark of
the current state of the router? How bad/good is the performance right now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGNG-l1oUYGghMRu1QYB_qKyZR0Ruizks5uky1ogaJpZM4KPO5P>
.
|
Yes, I totally understand that routing performance isn't the most time consuming part in applications. I was mainly asking since you brought it up in this issue. I'm new to Go, but it would be an interesting project for me to maybe work on. :) Also, thanks for the quick response. |
Well if you fancy having a look, the idea is to build a version of this that uses a radix tree for lookups. And benchmark it to see what difference it makes. Purely academic exercise though :) |
@matryer Ye, I'm already kinda done. :) Unfortunately I don't think it would be a good idea to merge my code with this project since it's so different. I mean, it looks just like your router from a user's perspective, but the router's code is almost fully replaced with my own. I might post it on github someday if anyone is interested. |
this might be useful |
is someone still working on |
pinging for visibility. Is there still interest in adding a radix tree implementation to |
@matryer ? Any interest? |
@dahernan talked about a way to make this way quicker (using radix trees) -- Let's do it.
The text was updated successfully, but these errors were encountered: