[Webkit-unassigned] [Bug 36849] Add zero() method to Vector class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 1 12:51:13 PDT 2010


--- Comment #20 from Chris Rogers <crogers at google.com>  2010-04-01 12:51:12 PST ---
(In reply to comment #19)
> It looks like std::fill() only uses a memset() optimization for 1 byte types.
> So I understand the need for an optimization. But can't this be done by
> optimizing Vector::fill() to use memset for any pod type being set to 0?

It clearly can be done in a brute-force way (template specializations for each
one), but I'm not sure of an elegant solution there but will look closer at it
since I suspect there is one.  Otherwise, I'm happy with Sam's solution.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list