PSA: Deprecating Compact Language Detector v1

119 views
Skip to first unread message

Andrew Hayden

unread,
Sep 4, 2015, 12:50:43 PM9/4/15
to Chromium-dev
Hey folks,

If you don't care about language detection or translation features in Chrome, you can stop reading now.

For everyone else, this CL has migrated Android's use of Compact Language Detector (CLD) from CLD1 to CLD2: https://codereview.chromium.org/1327543003. Android was the last platform still using CLD1 and there are no longer any dependencies on CLD1 in any GN or GYP build targets that I am aware of. I intend to remove all support for CLD1 in December 2015, approximately three months from now. If you still require support for CLD1, please reply on the bug linked below so that we can track your dependency and get it taken care of in time.

For more information, please refer to this bug:

Regards,
Andrew Hayden

Nico Weber

unread,
Sep 4, 2015, 1:10:15 PM9/4/15
to Andrew Hayden, Chromium-dev
Why wait so long? https://codereview.chromium.org/1327543003 landed 50 min ago, why not remove it right now?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Andrew Hayden

unread,
Sep 6, 2015, 4:53:59 AM9/6/15
to Nico Weber, Chromium-dev
Great question, Nico. Android has catalogued several crashing bugs (most with restricted access, sorry) that seem to disproportionately affect CLD2 on ARM v7. While I am hopeful that we've gotten to the bottom of almost all of them and resolved them, I think it would be premature to nuke CLD1 from orbit just yet in case we discover that we need to go back to it for stability reasons. I expect that by December this change will have had time to bake and be thoroughly tested on lots of devices, then we can safely remove CLD1 without worry.

Plus the bits have been rotting in the tree for a very long time now, a few more months won't hurt :)

-Andrew

Andrew Hayden

unread,
Apr 21, 2016, 3:40:42 PM4/21/16
to Chromium-dev, tha...@chromium.org, andrew...@chromium.org
I'm planning to start this in the very near future. This bug will track progress, for anyone who is interested:

Andrew Hayden

unread,
Apr 25, 2016, 4:02:22 PM4/25/16
to Chromium-dev, andrew...@chromium.org
I have just submitted the change to eliminate support for CLD1 here:

Please let me know if this causes your builds to explode with errors about CLD and/or translate. All bots were green and all tests passing, so we should be in good shape.

-Andrew

Nico Weber

unread,
Apr 25, 2016, 4:56:16 PM4/25/16
to Andrew Hayden, Chromium-dev, Andrew Hayden
Can third_party/cld be deleted too now?

--

Andrew Hayden

unread,
Apr 25, 2016, 6:59:45 PM4/25/16
to Nico Weber, Chromium-dev, Andrew Hayden
Yes, I'm just waiting a day or two to be sure that the gyp + gn changes stick. Then I'll kill cld1 from the DEPS.

Andrew Hayden

unread,
May 24, 2016, 6:07:11 AM5/24/16
to Nico Weber, Chromium-dev
After some fun with rietveld and gerrit, this is now done:

CLD1 is no more.

Regards,
Andrew
Reply all
Reply to author
Forward
0 new messages