public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/21193] New: provide better std::tr1::hash for std::string and std::wstring
@ 2005-04-24 16:57 TazForEver at dlfp dot org
  2005-04-24 16:58 ` [Bug libstdc++/21193] " TazForEver at dlfp dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: TazForEver at dlfp dot org @ 2005-04-24 16:57 UTC (permalink / raw)
  To: gcc-bugs

The current implementation of std::tr1::hash for std::string and std::wstring is
pretty bad. I think FNV should be used instead.

http://www.isthe.com/chongo/tech/comp/fnv/

I'm attaching a patch that may not be optimal when size_t is 64bits.

-- 
           Summary: provide better std::tr1::hash for std::string and
                    std::wstring
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: TazForEver at dlfp dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21193


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-07-15  9:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-24 16:57 [Bug libstdc++/21193] New: provide better std::tr1::hash for std::string and std::wstring TazForEver at dlfp dot org
2005-04-24 16:58 ` [Bug libstdc++/21193] " TazForEver at dlfp dot org
2005-04-26  8:45 ` pcarlini at suse dot de
2005-04-26  9:36 ` TazForEver at dlfp dot org
2005-04-26  9:50 ` pcarlini at suse dot de
2005-04-26 10:22 ` TazForEver at dlfp dot org
2005-04-26 10:44 ` pcarlini at suse dot de
2005-04-26 10:46 ` pcarlini at suse dot de
2005-04-26 14:38 ` schlie at comcast dot net
2005-04-26 14:52 ` pcarlini at suse dot de
2005-04-28 12:12 ` pcarlini at suse dot de
2005-04-28 15:09 ` pcarlini at suse dot de
2005-07-05 16:30 ` pcarlini at suse dot de
2005-07-06  7:42 ` tneumann at pi3 dot informatik dot uni-mannheim dot de
2005-07-13 10:51 ` cvs-commit at gcc dot gnu dot org
2005-07-15  0:07 ` cvs-commit at gcc dot gnu dot org
2005-07-15  9:38 ` cvs-commit at gcc dot gnu dot org
2005-07-15  9:40 ` pcarlini at suse dot de

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 read-only IMAP folder(s) and NNTP newsgroup(s).