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

Change tree type in Router struct #84

Closed
bmf-san opened this issue Jan 10, 2023 · 0 comments
Closed

Change tree type in Router struct #84

bmf-san opened this issue Jan 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bmf-san
Copy link
Owner

bmf-san commented Jan 10, 2023

Description

The tree that Router has might as well be a map.

tree                 map[string]*tree   // key is http method

cf. https://github.com/bmf-san/goblin/blob/master/router.go#L11

Describe the feature you'd like to request

For data structure optimization.

Describe the solution you'd like

Need to prove efficency by benchmark tests.

@bmf-san bmf-san added the enhancement New feature or request label Jan 10, 2023
@bmf-san bmf-san closed this as completed Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant