Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: How to parse an array? Date: Tue, 27 Jun 2017 20:05:19 -0000 (UTC) Organization: A noiseless patient Spider Lines: 35 Message-ID: References: <1758ec6f-966d-44c2-bdb9-03e5d4b61619@googlegroups.com> <967dfbc4-0e58-4867-b08c-67ff910df3fe@googlegroups.com> <642c0caf-de21-4add-8f61-8b68e94b1081@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Jun 2017 20:05:19 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b42ea594b08f436051cfb68920c75210"; logging-data="19151"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dwYBDT8bTbCkRGoDDiYwp50BvfjftSA4=" User-Agent: Pan/0.141 (Tarzan's Death; 168b179 git.gnome.org/pan2) Cancel-Lock: sha1:Bn0JYxf687fduVDuhzfCmGq8sTs= Xref: csiph.com comp.lang.java.programmer:36743 On Tue, 27 Jun 2017 12:50:15 -0700, Eric Douglas wrote: > On Tuesday, June 27, 2017 at 3:30:08 PM UTC-4, lewb...@gmail.com wrote: >> What do you mean by "efficient"? Is it "efficient" if you take six >> months to write a program that runs 0.000001% faster? What if the >> changes to make it "efficient" require 80 hours per month to maintain? >> Is that "efficient"? >> >> > Efficient means I have a searchable JTable using Lucene to index, tied > to a KeyListener on a JTextComponent. If I type a key it instantly > updates the view with matching rows. If I try to sort any of the > columns I'm just going through DefaultRowSorter which currently adds > about a 3 second delay on every keypress (on my machine, other machines > would be slower), would like to see that stay as close to instant as > possible. > > Since our tables are normally smaller and searchable tables don't > necessarily have to be sortable, I'm just leaving the default sort logic > in for now, as you say it's not worth my time right now. A 3 second > delay per keypress is worth a few hours of developer time if end users > do want more rows in at one time and you have a lot of users waiting 3 > seconds at a time many times per day. Are you using the DefaultTable or have you extended AbstractTableModel and if the latter, what are you using as the underlying table storage method? Whats a 'usual' size in terms of row and column counts? -- martin@ | Martin Gregorie gregorie. | Essex, UK org |