[Networkit] log statements in performance-critical places

Staudt, Christian (ITI) christian.staudt at kit.edu
Tue Mar 11 13:20:45 CET 2014

Developers, please remember to remove log statements in performance-critical places immediately after debugging. They are not free and will degrade performance. At least until we implement a more fool-proof solution that removes them automatically at compile time.


	DEBUG("iterate over edges of G and create edges in Gcon or update edge and node weights in Gcon");
	G.forWeightedEdges([&](node u, node v, edgeweight ew) {
		TRACE(Gcon.upperNodeIdBound()," ",nodeToSuperNode[u]," ",nodeToSuperNode[v]);
		node su = nodeToSuperNode[u];
		node sv = nodeToSuperNode[v];
		//TRACE("edge (", su, ", ", sv, ")");
		// add edge weight to weight between two supernodes (or insert edge)
		Gcon.increaseWeight(su, sv, ew);

Christian Staudt

christian.staudt at kit.edu
Institut of Theoretical Computer Science - Parallel Computing Group 
Building 50.34 Room 249
Karlsruhe Institute of Technology (KIT)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20140311/01d48443/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20140311/01d48443/attachment.sig>

More information about the NetworKit mailing list