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

Optimize memory issues in URLRouter. Fixes #1359. #2043

Merged
merged 2 commits into from Feb 16, 2018
Merged

Conversation

s-ludwig
Copy link
Member

Uses manual memory management for MatchGraphBuilder to avoid fragmenting the GC heap, which previously lead to huge process memory usage (See #1359). As a matter of fact, this also reduces the peak memory usage while building the match graph of the URLRouter.

Note that this does not fix the huge memory usage caused by the graph builder. This appears to be caused by memory fragmentation and not by the actual nominal memory usage.
Uses a combination of Array!T and a linked list for edge lists to avoid GC heap fragmentation.
@tchaloupka
Copy link
Contributor

ping @s-ludwig
probably just requires CI reset?

@dlang-bot dlang-bot merged commit 6984b62 into master Feb 16, 2018
@s-ludwig s-ludwig deleted the router_mem_opt branch February 22, 2018 10:51
s-ludwig added a commit that referenced this pull request Mar 18, 2018
s-ludwig added a commit that referenced this pull request Apr 25, 2018
s-ludwig added a commit that referenced this pull request Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants