From: "Shawn O. Pearce" <spearce@spearce.org>
To: "Roger C. Soares" <rogersoares@intelinet.com.br>
Cc: git@vger.kernel.org, robin.rosenberg@dewire.com
Subject: Re: [EGIT PATCH 1/4] Change history page table to SWT.VIRTUAL.
Date: Mon, 31 Mar 2008 01:34:30 -0400 [thread overview]
Message-ID: <20080331053430.GJ10274@spearce.org> (raw)
In-Reply-To: <1206890314-3712-1-git-send-email-rogersoares@intelinet.com.br>
"Roger C. Soares" <rogersoares@intelinet.com.br> wrote:
> It makes the history page show about the same speed as gitk on my
> eclipse.
>
> From the eclipse API:
>
> "Style VIRTUAL is used to create a Table whose TableItems are to be
> populated by the client on an on-demand basis instead of up-front.
> This can provide significant performance improvements for tables
> that are very large or for which TableItem population is expensive
> (for example, retrieving values from an external source)."
Yea, I originally wrote my series around the VIRTUAL flag but on
Win32 it caused ArrayIndexOutOfBoundsExceptions to be thrown from
deep down within the Win32 implementation of the SWT Table widget.
Appears to be something of a known bug, based on the Eclipse issue
tracker, but not much work happening to fix it.
I'll retest this tomorrow on Win32, but I'm pretty certain its
a bad idea on that platform. What are you running on, Linux?
Maybe we can set this flag everywhere except on Win32.
> diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/CommitGraphTable.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/CommitGraphTable.java
> index fffe7e0..6559d64 100644
> --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/CommitGraphTable.java
> +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/CommitGraphTable.java
> @@ -88,7 +88,7 @@ class CommitGraphTable {
> hFont = highlightFont();
>
> final Table rawTable = new Table(parent, SWT.MULTI | SWT.H_SCROLL
> - | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION);
> + | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION | SWT.VIRTUAL);
> rawTable.setHeaderVisible(true);
> rawTable.setLinesVisible(false);
> rawTable.setFont(nFont);
--
Shawn.
next prev parent reply other threads:[~2008-03-31 5:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-30 15:18 [EGIT PATCH 1/4] Change history page table to SWT.VIRTUAL Roger C. Soares
2008-03-31 5:34 ` Shawn O. Pearce [this message]
2008-04-01 3:25 ` Roger C. Soares
2008-04-01 3:36 ` Shawn O. Pearce
2008-04-01 3:54 ` Roger C. Soares
2008-04-01 4:12 ` Shawn O. Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080331053430.GJ10274@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
--cc=rogersoares@intelinet.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).