Re: Measuring/improving performance

From: John D. Pritchard <jdp_at_cs.columbia.edu>
Date: Wed, 12 Apr 1995 14:24:57 -0400

well, this is barely any help, but i'm very interested in "obliq"
which is a network objects interpreted language implemented on top
of modula-3. for info see

<DT><A HREF="http://www.research.digital.com/SRC/Obliq/Obliq.html">Obliq Quick Start</A>
    
<DT><A HREF="http://www.research.digital.com/SRC/home.html">Digital Systems Research Center Home Page</A>
    
<DT><A HREF="http://www.research.digital.com/SRC/Obliq/ObliqPaper-html/ObliqPaper.html">http://www.research.digital.com/SRC/Obliq/ObliqPaper-html/ObliqPaper.html</A>

<DT><A
HREF="http://www.research.digital.com/SRC/modula-3/html/home.html">Modula-3
home page</A>

<DT><A HREF="http://www.research.digital.com/SRC/publications/src-rr.html">SRC
Research Reports</A>

> From: Andrew Joseph Kompanek <ak10+_at_andrew.cmu.edu>
> Date: Wed, 12 Apr 1995 13:12:43 -0400 (EDT)
> To: stk_at_kaolin.unice.fr
> Subject: Measuring/improving performance
> Message-ID: <0jX0c=200guQ019380_at_andrew.cmu.edu>
>
>
> I've written a parser that interprets a simple text-based distributed object
> protocol (it simply supports sending objects and their attribute values)
> and turns it into scheme/stklos data structures.
>
> It ends up being horrendously slow -- something like a list only about
> 50 simple objects a second.
>
> It has two layers:
>
> - a simple tokenizer: the tokens are just delimiters and strings
> of characters separated by whitespace. I use read-char and
> peek-char and a simple case to convert a character into
> a symbol standing for a delimiter.
>
> - a simple parser: when the expression parser recognizes a delimiter
> it calls the associated parser for the expression type.
>
> I'm not sure if this is enough information -- but I'm trying to decide
> how to go about profiling where the program is spending its time and
> then figure out if there's anything I can do to speed things up,
> including implementing parts in C. I suspect that it spends most
> of its time manipulating data structures... which makes me think
> that implementing control and I/O in C wouldn't speed things
> up significantly.
>
> The code is quite simple... it's EXTREMELY distressing that it's
> as slow as it is -- basically unacceptable for the application
> I'm working on.
>
> Any help would really, really appreciated -- anything about profiling,
> advice on places to look for bottlenecks, how much of a speed
> gain you can get doing different things in C, etc...
>
> Thanks,
> Drew
>
>
>
>
Received on Wed Apr 12 1995 - 20:26:28 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST