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

Add symbols "#*+" to drouting tree #194

Merged
merged 2 commits into from Jun 15, 2015

Conversation

snen
Copy link
Contributor

@snen snen commented Jun 8, 2015

With this patch drouting can use "#*+" in addition to the decimal digits.

Some tests with a set of 500.000 rules (64bit system)

Performance impact (kamcmd droating.reload):

decimal only: ~21sec
decimal and "#*+": ~21sec

Memory usage (kamcmd core.shmmem):

after start, decimal only, used: 203119976
after start, decimal and "#*+", used: 240338888

@miconda
Copy link
Member

miconda commented Jun 11, 2015

The code to compute the index is repeating in 3 places. It should be made a function. You can add an addition patch to this pull request and I will merge then.

In long term, the list of characters that can be used has to be made a module parameter, for proper flexibility.

@linuxmaniac
Copy link
Member

or you can rework the patch amend and push --force

@snen
Copy link
Contributor Author

snen commented Jun 15, 2015

uniform code is moved to function.

@miconda
Copy link
Member

miconda commented Jun 15, 2015

I am going to merge it.

For the future, when writing the commit messages, use the guidelines from:

miconda added a commit that referenced this pull request Jun 15, 2015
@miconda miconda merged commit 52c4316 into kamailio:master Jun 15, 2015
@snen snen deleted the extend_drouting_with_3_symbols branch September 10, 2015 13:35
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.

None yet

3 participants