W3C home > Mailing lists > Public > www-international@w3.org > January to March 2014

[Bug 24198] The Encoding Standard should use bitwise operations instead of multiplication, division and exponentiation when natural

From: <bugzilla@jessica.w3.org>
Date: Tue, 07 Jan 2014 06:46:17 +0000
To: www-international@w3.org
Message-ID: <bug-24198-4285-uSrCOF8DL8@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24198

Martin Dürst <duerst@it.aoyama.ac.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |duerst@it.aoyama.ac.jp

--- Comment #4 from Martin Dürst <duerst@it.aoyama.ac.jp> ---
(In reply to Anne from comment #3)
> Henri, note that in particular encoders are very slow the way they are
> written now. Creating a dedicated lookup table would be much quicker. Do you
> think we should have that too?

I'm not Henri, but I don't think speed is important in the spec. But make it
clear to the reader that other ways of implementation giving the same result
may be (much) faster.

> (The Encoding standard actually does define left and right shifts, and
> logical OR and AND, and uses them. Just not for utf-8...)

Do you mean bit-wise OR and AND? If you actually have these operations
well-defined already, and if there are no issues along the lines of those
pointed out by John at #c2, then using these operations for UTF-8 would be the
way to go. I can't immagine not doing UTF-8 with these operations if available.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 7 January 2014 06:46:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:36 UTC