This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Search algorithms in __gnu_cxx::


On 11/13/06, Paolo Carlini <pcarlini@suse.de> wrote:
Dhruv Matani wrote:

> Ok, since I'm on my way to preparing a patch, there are a couple of
> things that I would like to know:
> [1] What file should the new algorithm be put in?
> [2] Should a version ONLY for char be used, or a separate inefficient
> one for other types too?

What about all the other (substantive) issues we discussed in private
email?!??!


IMHO, these were right up there along with the issue of using/sprucing
up the glibc strstr. Another issue was wide string support. IIRC, both
were resolved amicably.
[1] It wasn't really worth patching glibc's function, since it was
already fast for short strings.
[2] The lookup table in case of wise strings is too large.

Please let me know if I've missed out anything....

Regards,
-Dhruv.




-- -Dhruv Matani. http://www.geocities.com/dhruvbird/

"Be sure brain is in gear before engaging mouth"
     -- Anonymous


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]