Subject: Re: [TS] Development roadmap
From: Ben Darnell (bgdarnel@unity.ncsu.edu)
Date: Thu May 04 2000 - 16:36:21 EDT
On Thu, May 04, 2000 at 12:01:57AM -0400, Ben Darnell wrote:
> thoughtstream-web
> -----------------
> This is just getting started. Right now it doesn't do much and it's
> painfully slow. The first problem will just take time and work to fix;
> the second is somewhat tricky. I want it to run with or without Zope,
> so we can't rely on Zope to get rid of startup time. I think the main
> thing that slows it down is importing all the modules, so the CGI code
> should not do 'import thoughtstream' (because that entails importing all
> of the sub-modules). If that doesn't speed it up enough, I don't think
> there's anything else that can be done without using some sort of
> long-running process.
I've run some tests, and now I think that even if the imports were cut
down a lot, it's just not going to be fast enough for production use
without a long-running process. Just loading the interpreter and the
cgi, MySQLdb, and DocumentTemplate modules takes over half a second.
Since any site that cares at all about speed will be running this thru
pcgi, Zope, or something similar, I guess it's safe to give up on trying
to make the script start up quickly.
>
> Instead of inheriting from thoughtstream.Mind,
> thoughtstream.web.MySQLMind should inherit from
> thoughtstream.web.LiteMind, which would implement a subset of the
> features of thoughtstream.Mind. It would probably also use a LiteIdea
> and LiteItem class. Instances of all of these objects could be exposed
> directly to the DTML parser (this means that dangerous methods, such as
> Item.delete, should *not* be implemented in the Lite classes).
Since the speed boost offered by these Lite classes is essentially
irrelevant, maybe it'd be best to just add security checks to the base
classes instead.
-Ben
-- Ben Darnell bgdarnel@unity.ncsu.edu http://thoughtstream.org Finger bgdarnel@debian.org for PGP/GPG key 1024D/1F06E509------------------------------------------------------------------------ You have a voice mail message waiting for you at iHello.com: http://click.egroups.com/1/3555/4/_/6321/_/957472599/ ------------------------------------------------------------------------
This archive was generated by hypermail 2b25 : Wed Aug 30 2000 - 22:01:01 EDT