Skip to content
This repository was archived by the owner on Jun 22, 2020. It is now read-only.

optimize toEdge by using mutable.#279

Open
SteamShon wants to merge 1 commit into
developfrom
feature/optimize_to_edge
Open

optimize toEdge by using mutable.#279
SteamShon wants to merge 1 commit into
developfrom
feature/optimize_to_edge

Conversation

@SteamShon

Copy link
Copy Markdown
Contributor

since toEdge is called lots of times, we think it is worth to optimize.

This is what @daewon reported

2016-03-22 7 35 00

based on profile, we can notice that toMap on list and ++ on two list takes many cpu time on toEdge.
we can avoid toMap and ++ by using mutable map and give up functional style here. I think code looks ugly(not too bad), but we can remove unnecessary cpu usage. I would be minor tuning but toEdge is called many many times(called once on every fetched edges).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant