[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] Re: [cdt-debug-dev] MIParser Change (fwd)
|
>From cdt-debug-dev-admin@xxxxxxxxxxx Wed Jun 25 12:40:27 2003
Received: from hub.ott.qnx.com (root@xxxxxxxxxxxxxxx. [192.168.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id MAA25029; Wed, 25 Jun 2003 12:40:27 -0400
Received: from dev.eclipse.org (dev.eclipse.org [204.138.98.15])
by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id MAA13049;
Wed, 25 Jun 2003 12:33:03 -0400
Received: from dev.eclipse.org (localhost.localdomain [127.0.0.1])
by dev.eclipse.org (Postfix) with ESMTP
id 4A67B23FCB; Wed, 25 Jun 2003 12:40:01 -0400 (EDT)
Delivered-To: cdt-debug-dev@xxxxxxxxxxx
Received: from hub.ott.qnx.com (unknown [209.226.137.76])
by dev.eclipse.org (Postfix) with ESMTP id A75E523FB5
for <cdt-debug-dev@xxxxxxxxxxx>; Wed, 25 Jun 2003 12:39:24 -0400 (EDT)
Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158])
by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id MAA13005
for <cdt-debug-dev@xxxxxxxxxxx>; Wed, 25 Jun 2003 12:32:05 -0400
Received: from node1.ott.qnx.com (hwlab1 [10.0.2.159]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id MAA07258 for <cdt-debug-dev@xxxxxxxxxxx>; Wed, 25 Jun 2003 12:39:28 -0400
Received: (from alain@localhost) by node1.ott.qnx.com (8.8.8/8.6.12) id MAA28653 for cdt-debug-dev@xxxxxxxxxxx; Wed, 25 Jun 2003 12:39:27 -0400
Message-Id: <200306251639.MAA28653@xxxxxxxxxxxxxxxxx>
Subject: Re: [cdt-debug-dev] MIParser Change
To: cdt-debug-dev@xxxxxxxxxxx
From: "Alain Magloire" <alain@xxxxxxx>
In-Reply-To: <5.1.0.14.2.20030624145734.027c2b18@xxxxxxxxxxxxxxxxxxxxxxxx> from "Chris Songer" at Jun 24, 2003 04:32:23 PM
X-Mailer: ELM [version 2.5 PL0b1]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: cdt-debug-dev-admin@xxxxxxxxxxx
Errors-To: cdt-debug-dev-admin@xxxxxxxxxxx
X-BeenThere: cdt-debug-dev@xxxxxxxxxxx
X-Mailman-Version: 2.0.13
Precedence: bulk
Reply-To: cdt-debug-dev@xxxxxxxxxxx
List-Unsubscribe: <http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev>,
<mailto:cdt-debug-dev-request@xxxxxxxxxxx?subject=unsubscribe>
List-Id: CDT Debug developers list <cdt-debug-dev.eclipse.org>
List-Post: <mailto:cdt-debug-dev@xxxxxxxxxxx>
List-Help: <mailto:cdt-debug-dev-request@xxxxxxxxxxx?subject=help>
List-Subscribe: <http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev>,
<mailto:cdt-debug-dev-request@xxxxxxxxxxx?subject=subscribe>
List-Archive: <http://dev.eclipse.org/pipermail/cdt-debug-dev/>
Date: Wed, 25 Jun 2003 12:39:23 -0400 (EDT)
>
> --=====================_109560890==_
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
>
> Hi,
>
> Assuming I correctly browsed the CDT/CVS repository, the following issues
> apply to the head as well.
>
> The MIParser is O(N^2) time in the length of a line returned from GDB.
> While not an issue for OOB messages, this can be quite an issue for array
> retrieval from the target and other potentially long messages. It's N^2
> because it relies on StringBuffer.deleteCharAt( 0 ) and
> StringBuffer.delete( 0, X ). These operations appear to do a copy of the
> remaining data in the Sun Java library rather than bumping some index.
>
> The following diffs are code that we are using on 1.0.1 to correct this
> issue. It's relatively new, so there may be some bugs but has certainly
> performed just fine in our initial regressions. Because of that I'm not
> sending it in as a patch, more an FYI really. The basic change is exactly
> what you'd expect: these diffs make MIParser use a new type of string
> buffer that's quite efficient at deleting from the head of the array.
>
Very cool ... with one havoc .. your patch is reversed 8-)
Seems a good candidate for the head.
> Now our issue has to do with GDB performance in array retrieval. It's quite
> slow.
Yes, speed/performance was not part of the equation, but rather getting
the parsing protocol MI right. But now its a good time to look at the issue.
I'll apply the patch later.
Thanks for looking at this.
_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!