Extension talk:Graphviz (Dynamic Cache)

From mediawiki.org
Latest comment: 18 years ago by 63.76.1.249 in topic Shorting the URLs

GraphViz[edit]

Please compare Extension:Graphviz with Extension:GraphViz (capital 'V'). -- Tim Chambers 1E4AF729D5CEFFD0

Shorting the URLs[edit]

I've set up Cygon's Graphviz extension and it works great. However for large graphs, I noticed that the URLs were getting too large for IIS.

I changed the code to call gzdeflate before base64_encode and to call gzinflate after base64_decode. Now the URLs are much shorter, on the order of half what they were.

Here are the two changes, it should be easy to see where they belong:

gzinflate( base64_decode($_GET["graph"]) )
$encodedSrc = base64_encode( gzdeflate($src) ); 

--63.76.1.249 22:24, 19 October 2005 (UTC)Reply