Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24382
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases |
| References | <9f2c5c11-c4e1-42bc-8c82-e0255ea897a5@m8g2000yqf.googlegroups.com> <kp89mi$uk$1@dont-email.me> <572d9ee8-aa0c-4275-a41c-e9bebccfbc21@googlegroups.com> <72c9496b-124a-4b41-8953-5b188280b09e@9g2000yqq.googlegroups.com> |
| Message-ID | <k51ut.52980$cw4.9418@newsfe21.iad> (permalink) |
| Date | 2013-06-12 09:12 -0700 |
On 6/12/13 5:11 AM, Haircuts Are Important wrote: > On Jun 12, 2:35 am, clusard...@aol.com wrote: >> On Tuesday, June 11, 2013 6:56:49 PM UTC-4, Knute Johnson wrote: >>> On 6/11/2013 12:42 PM, Haircuts Are Important wrote: > How much >>> memory does a JTable use as the number of rows and columns in > >>> increases. > > How can I measure memory useage and number of pixels >>> used by a JTable. > > Thank you, > As to memory I have no idea but >>> I am curious why it matters. Most modern computers have a boat load >>> of memory and virtual memory. As for pixels, you can create it, >>> display it on a JPanel, pack it and ask it how big it is. -- Knute >>> Johnson >> >> It matters to me because of overall efficiency questions. Basically, if I have many other programs running or computationally intense prgrams running at the same time will my new java project slow all these programs down if it has many rows and columns. Can I improve the effiency more by restricting my new project to only a few rows and columns. >> >> Thanks, > > Does java have something like the old "sizeof" function in the > language C. No. The JTable itself won't add a lot of extra memory usage, most of the usage will likely come from your data itself. Even if you had sizeof, the best way to determine the actual efficiency of a program is by testing and profiling. If you're thinking on the scale of a few hundred, I wouldn't even worry about it. tens of thousands I'd start to get a little concerned, but I'd test first. No easy answer, you just gotta fill your data structure and see what happens.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Haircuts Are Important <clusardi2k@aol.com> - 2013-06-11 12:42 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Knute Johnson <nospam@knutejohnson.com> - 2013-06-11 15:56 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases "John B. Matthews" <nospam@nospam.invalid> - 2013-06-11 22:51 -0400
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases clusardi2k@aol.com - 2013-06-11 23:29 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases clusardi2k@aol.com - 2013-06-11 23:35 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Haircuts Are Important <clusardi2k@aol.com> - 2013-06-12 05:11 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-06-12 09:12 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Knute Johnson <nospam@knutejohnson.com> - 2013-06-12 08:21 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Haircuts Are Important <clusardi2k@aol.com> - 2013-06-12 09:13 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-06-12 13:29 -0400
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Haircuts Are Important <clusardi2k@aol.com> - 2013-06-14 05:47 -0700
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-06-14 10:37 -0400
Re: Memory & Pixel Usage Etc: As Number of JTable Rows & Columns Increases Lew <lewbloch@gmail.com> - 2013-06-14 10:42 -0700
csiph-web