Skip to content

remove unused HGVertex member variables - #399

Merged
jteresco merged 1 commit into
TravelMapping:masterfrom
yakra:HGVertex
Jan 12, 2021
Merged

jteresco merged 1 commit into
TravelMapping:masterfrom
yakra:HGVertex

Conversation

@yakra

@yakra yakra commented Jan 10, 2021 •

Copy link
Copy Markdown
Contributor

Remove sets populated during vertex construction but never used.

  • Saves > 82 MB RAM in C++ version.
  • A decent speedup Creating unique names and vertices:
    • >23% C++ on lab2 (4.3s -> 3.48s)
    • ~44% Python on noreaster (17.6s -> 12.2s)

@jteresco

Copy link
Copy Markdown
Contributor

Trying to think of what those were supposed to be used for. Maybe they were just added in anticipation of needing them for something?

@yakra

yakra commented Jan 11, 2021 •

Copy link
Copy Markdown
Contributor Author

I assume so. I followed the blame back to when they were first introduced, but don't remember looking too close at the surrounding code to see if they were used.

Edit: Taking a look again, nothing. Unused as of 3b40d24.
Though it's possible that between then and now some functionality was introduced and later removed.

@yakra

yakra commented Jan 11, 2021 •

Copy link
Copy Markdown
Contributor Author

I've got some upcoming C++ changes (~25% speedup writing subgraphs) that follow from this commit.
If this is something worth saving, I could cherrypick or do an interactive rebase.
Or, if the need should ever arise in the future, it should be easy enough to add back in.

@jteresco

Copy link
Copy Markdown
Contributor

Sounds good to kill them off, then. Merging.

@jteresco
jteresco merged commit fbc2a0d into TravelMapping:master Jan 12, 2021
@yakra
yakra deleted the HGVertex branch January 12, 2021 02:55
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.

2 participants