<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
Received: with ECARTIS (v1.0.0; list gopher);
 Thu, 04 Apr 2002 18:20:04 -0500 (EST)
Return-Path: &lt;jgoerzen@complete.org&gt;
Delivered-To: gopher@complete.org
Received: from christoph.complete.org (pcp947166pcs.cstltn01.in.comcast.net
 [68.58.145.248])
	by pi.glockenspiel.complete.org (Postfix) with ESMTP id ADEFD3B81B
	for &lt;gopher@complete.org&gt;; Thu,  4 Apr 2002 18:20:03 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by christoph.complete.org (Postfix) with ESMTP id B9E895A40A
	for &lt;gopher@complete.org&gt;; Thu,  4 Apr 2002 18:20:03 -0500 (EST)
Date: Thu, 4 Apr 2002 18:20:03 -0500
Subject: [gopher] Re: Pygopherd nearing gopherd replacement
Content-type: text/plain; charset=US-ASCII
Mime-Version: 1.0 (Apple Message framework v481)
From: John Goerzen &lt;jgoerzen@complete.org&gt;
To: gopher@complete.org
Content-Transfer-Encoding: 8bit
In-Reply-To: &lt;p05010412b8d273621bed@[205.189.158.32]&gt;
Message-Id: &lt;7DFACC96-4822-11D6-857D-0003930BF072@complete.org&gt;
X-Mailer: Apple Mail (2.481)
X-archive-position: 555
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: jgoerzen@complete.org
Precedence: bulk
Reply-to: gopher@complete.org
List-help: &lt;mailto:ecartis@complete.org?Subject=help&gt;
List-unsubscribe: &lt;mailto:gopher-request@complete.org?Subject=unsubscribe&gt;
List-software: Ecartis version 1.0.0
List-ID: Gopher &lt;gopher.complete.org&gt;
X-List-ID: Gopher &lt;gopher.complete.org&gt;
List-subscribe: &lt;mailto:gopher-request@complete.org?Subject=subscribe&gt;
List-owner: &lt;mailto:jgoerzen@complete.org&gt;
List-post: &lt;mailto:gopher@complete.org&gt;
List-archive: &lt;http://www.complete.org/mailinglists/archives/&gt;
X-list: gopher
</p>
<p></p>
<p>On Thursday, April 4, 2002, at 04:19  PM, Robert Hahn wrote:
</p>
<p>&gt; You want comments?
&gt;
&gt; I&#x27;ve a question. does that count? :)
</p>
<p>Sure :-)
</p>
<p>&gt; How fast is it relative to the C version?
</p>
<p>Right now, there has been exactly zero effort expended on optimization.
I have also not done any formal benchmarks.
</p>
<p>That said, there is no noticeable difference between pygopherd and
gopherd except when rendering very large (hundreds or thousands of
items) UMN-style (dynamically-generated) directories.  Part of this is
because pygopherd does more work to generate a directory -- looking up
MIME types and such.  Part of this is because there is no caching
mechanism yet.  And part of it is probably due to the modular
architecture and interpreted nature of the code.  Maybe I&#x27;ve just done
something inefficiently, too.
</p>
<p>I was quite encouraged by the results otherwise.  The server generates
&quot;sane&quot; URLs -- in fact, you could make it listen on port 80 and it would
be indistinguishable from a regular webserver.  HTTP URLs generated by
pygopherd do not contain a type character, so relative links in HTML
docs will work, at least over HTTP (and perhaps with non-web-browser
Gopher implementations?  crossing fingers!)  Pygopherd also does not add
an extra (or &quot;second&quot; if you&#x27;re using URLs) type character like UMN
gopherd does.  Because it figures all this out itself, that is
unnecessary.
</p>
<p>&gt; My guess is that the main bottleneck is the disk access, so it&#x27;s
&gt; probably not much slower, right?
</p>
<p>Probably the main bottleneck is the Internet, followed by disk.  Yes.
</p>
<p>-- John
</p>
<p></p>
</card>
</wml>
