Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2090)

Issue 331290043: ICU ticket #13467: make U8_NEXT() never call a function (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 5 months ago by markus.icu
Modified:
6 years, 4 months ago
Reviewers:
sffc
CC:
mark_macchiato.com, andy.heninger, srl295
Base URL:
http://source.icu-project.org/repos/icu/trunk/
Visibility:
Public.

Description

ICU ticket #13467: make U8_NEXT() never call a function

Patch Set 1 #

Total comments: 4

Patch Set 2 : smaller U8_NEXT() with no function call #

Patch Set 3 : expand validity marcros: do not leave it up to the compiler to detect that masking the lead bytes i… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -60 lines) Patch
M icu4c/source/common/unicode/utf8.h View 1 2 4 chunks +52 lines, -60 lines 0 comments Download

Messages

Total messages: 13
markus.icu
6 years, 5 months ago (2017-11-11 00:25:31 UTC) #1
sffc
I looked at this for a while and I believe it is correct. I want ...
6 years, 5 months ago (2017-11-17 08:55:22 UTC) #2
markus.icu
https://codereview.appspot.com/331290043/diff/1/icu4c/source/common/unicode/utf8.h File icu4c/source/common/unicode/utf8.h (right): https://codereview.appspot.com/331290043/diff/1/icu4c/source/common/unicode/utf8.h#newcode351 icu4c/source/common/unicode/utf8.h:351: #define U8_NEXT(s, i, length, c) U8_INTERNAL_NEXT_OR_SUB(s, i, length, c, ...
6 years, 5 months ago (2017-11-17 16:58:01 UTC) #3
sffc
I made some benchmarks. I compared four implementations: 1. U8_NEXT on trunk 2. U8_NEXT_MARKUS from ...
6 years, 4 months ago (2017-11-30 08:39:34 UTC) #4
markus.icu
On Thu, Nov 30, 2017 at 12:39 AM, Shane Carr <sffc@google.com> wrote: > I made ...
6 years, 4 months ago (2017-11-30 22:15:15 UTC) #5
markus.icu
I looked at the size of my proposed U8_NEXT() code with Linux clang 3.4 with ...
6 years, 4 months ago (2017-12-01 18:45:49 UTC) #6
markus.icu
I realized that since the test function did not return the final index, the last ...
6 years, 4 months ago (2017-12-01 23:09:31 UTC) #7
markus.icu
smaller U8_NEXT() with no function call
6 years, 4 months ago (2017-12-01 23:32:45 UTC) #8
markus.icu
expand validity marcros: do not leave it up to the compiler to detect that masking ...
6 years, 4 months ago (2017-12-02 00:08:11 UTC) #9
markus.icu
This passes all ICU tests. Shane, maybe you can plug this into your little benchmark. ...
6 years, 4 months ago (2017-12-02 00:10:05 UTC) #10
sffc
LGTM When I run this with -O3, the newest implementation (patch set 3) is faster ...
6 years, 4 months ago (2017-12-02 02:24:55 UTC) #11
mark_macchiato.com
Nice work! Mark <https://twitter.com/mark_e_davis> On Sat, Dec 2, 2017 at 3:24 AM, <sffc@google.com> wrote: > ...
6 years, 4 months ago (2017-12-02 06:14:25 UTC) #12
markus.icu
6 years, 4 months ago (2017-12-05 19:23:31 UTC) #13
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b