Created
February 21, 2014 19:04
-
-
Save timjstewart/9140992 to your computer and use it in GitHub Desktop.
Is this slow?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<Vertex> responses = ... list of 8 responses ... | |
| // Collect all the concepts for all of the responses along with the responses that mention each concept. | |
| final Map m = [:] | |
| final List<Vertex> concepts = responses._().bagConcepts(m, 1L, 1) { [it, it.in(S.EDGE_MENTIONS).toList()] }.toList() | |
| // Even if each response mentions the same 100 concepts, that should only be 800 vertices tops, I would think... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment