Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15024
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | markspace <-@.> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: case strings |
| Date | Sun, 03 Jun 2012 19:19:05 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 15 |
| Message-ID | <jqh5us$n1v$1@dont-email.me> (permalink) |
| References | <robns7d4t1tn9g0q8i1g0rph1g36cnk7ko@4ax.com> <YVPyr.3287$At.402@newsfe23.iad> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 4 Jun 2012 02:19:09 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="GC1G+YEBq7tNUwQYTaeFcA"; logging-data="23615"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q5Kyllfs8/gGMePQxsHLftpqV3vVmqsg=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
| In-Reply-To | <YVPyr.3287$At.402@newsfe23.iad> |
| Cancel-Lock | sha1:9Wm5+d8nAB7SG2bx2c9MIVKgXAY= |
| Xref | csiph.com comp.lang.java.programmer:15024 |
Show key headers only | View raw
On 6/3/2012 1:37 PM, Daniel Pitts wrote: > It took me a second to realize you meant switch/case with Strings. I > thought you were talking about letter case and case sensitivity, and the > rest became a non sequitur. > > I haven't looked into the mechanisms specifically, but I would imaging Thanks for translating from Roedyese into English. I was having no luck at all with it. Iirc, the strings in a case statement are hashed. I seem to recall the implementer posting about how it worked, and he used a perfect hash for the strings, so it should be faster (slightly) than a regular hash map.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
case strings Roedy Green <see_website@mindprod.com.invalid> - 2012-06-03 11:40 -0700
Re: case strings Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-03 13:37 -0700
Re: case strings markspace <-@.> - 2012-06-03 19:19 -0700
Re: case strings Roedy Green <see_website@mindprod.com.invalid> - 2012-06-04 07:53 -0700
Re: case strings Lew <noone@lewscanon.com> - 2012-06-05 23:53 -0700
Re: case strings Roedy Green <see_website@mindprod.com.invalid> - 2012-06-04 07:57 -0700
Re: case strings "Mike Schilling" <mscottschilling@hotmail.com> - 2012-06-04 08:18 -0700
Re: case strings Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-06-04 11:30 -0400
Re: case strings Lew <noone@lewscanon.com> - 2012-06-06 00:15 -0700
csiph-web