Repository navigation
Trivial optimization to isFeasiblePair - #911
Conversation
This will eschew expensive String manipulations.
…re is String manipulation
|
This will also help w/ excessive memory traffic and garbage collection - I'm seeing 645 GB (!!!) |
|
Thanks for the optimization. It is indeed necessary. Just a short survey about your use of the library? How large are the graphs that you are running this algorithm? How long does it take to finish? How much memory does it consume (after the useless strings removal)? Thanks |
|
@d-michail thanks for the response! The use case is within a global optimization context. Undirected graphs will be in the dozens of nodes typically (although I can foresee going into low hundreds) with total number of vertices also in that ballpark (subgraphs somewhat smaller). I'm currently running this for every step in the optimization (so thousands of times) - I seem to be able to do below a thousand calls per second (which is unfortunately too slow). Memory consumption is "ok" - flight recorder has me believe it's 100MB sustained for this use case for 4 threads. Lots of GC traffic (see below). The biggest bottleneck right now is the |
|
Thanks! |
|
Could you give us your real name for the credits? |
|
@jsichi sorry, new laptop wasn't set up right yet. Johannes M Dieterich. Thanks! |
|
Great, I've updated with your real name. |
Hide the message strings that are only used in DEBUG case behind DEBUG.
This will eschew expensive String manipulations which show up as more than 50% of time in profiling subgraph isomorphism detection of an undirected graph with 38 nodes with a subgraph of 10 nodes and similarly for full isomorphism.
HISTORY.mdorCONTRIBUTORS.md