--
You received this message because you are subscribed to the Google Groups "java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java+uns...@chromium.org.
To post to this group, send email to ja...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/CAH3q7_m0%2B23bTypoDuMNNUYJY75p-O4NeaCtHHYz8TddZuJ8dw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/CABiQX1XM_nYy5-DFp44SUYFLZbWzk_c15VHjrJPT4qUUhCaOQg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/CAC6Qbv8N5oXq91PC%3D%3DZkOB_vfv%2BgJEErOTF7OZDYrRBBT5b99w%40mail.gmail.com.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAA6XDjOX3O%3DAM0vp5ZZ9BM%3DyZSHEtmwwNNEnDuUfPyhBECYBcQ%40mail.gmail.com.
Hi,
Thx for your mail.
There is general patch from this series in queue now (unfortunately XL), which is improving all/almost all EXISTING IntDef and making them really consistent across dirs. I will be more than happy when somebody could help me with fast landing it – it’s big and needs maintaining already.
https://chromium-review.googlesource.com/c/chromium/src/+/1137217
maybe Yaron? (please, next one will be definitely smaller)
With kind regards,
Marcin
--
You received this message because you are subscribed to the Google Groups "java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java+uns...@chromium.org.
To post to this group, send email to ja...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/000701d41e05%2433719ae0%249a54d0a0%24%40mwiacek.com.
You’re right, but this case is different:
From CL description:
“The main purpose of it it moving all definition of existing @IntDef inside related interface - it helps with code readiness and gives a lot of other profits (understanding, which value belongs to each IntDef, etc.)
If possible, please do not drop this CL because it's big:
1. I have experience, that code owners want rather open discussion than just simply help in getting the same style around many dirs (…)
2. changes are even more than trivial and we could avoid many pain just by submitting one CL
3. people are on holidays
4. it's so simple that review for it will need no more than 0.5h “
See especially on point 4, one CL and we have consistency across tree, I will maintain it, but need review.
Hi Tommy,
I believe, that IntDef are one of these changes, which should be done automatically by developers on some level.
Please look very carefully and deeply into https://chromium-review.googlesource.com/c/chromium/src/+/1137217 before we will continue discussion – these IntDefs are already in code, I’m just improving their readability (this is like renaming a to A) + changes in many files are just for one line.
Other changes from these series are small and I totally agree with your arguments.
We’re using RetentionPolicy = SOURCE and we have already info https://developer.android.com/topic/performance/reduce-apk-size#remove-enums, do you expect numbers confirming this and many other sources?
Hi Tommy,
Good and valuable question, thx – I have done my build without and with one patch and got the same numbers from build/android/method_count.py, details in the https://chromium-review.googlesource.com/c/chromium/src/+/1136879.
Cheers,
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/000201d41e20%2454ada580%24fe08f080%24%40mwiacek.com.
I just noticed a recent change that replaced a complex enum with a set of arrays that are indexed by an Intdef:https://chromium-review.googlesource.com/c/chromium/src/+/1215202/14/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#b192
I agree that replacing simple enums that just represent integer constants with IntDefs is good if that reduces the binary size. I'm not sure if it is a good idea to replace more complex enums if this means that we have a number of arrays where any change has to preserve indexing and order. This seems to make it very easy to introduce bugs.
What do you think?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/java/CABiQX1U4f16yxQoa%2Bq9moGojZcN1Sj1L6BXrnvZ-%3D_x5HDUvXQ%40mail.gmail.com.
Hi,I just noticed a recent change that replaced a complex enum with a set of arrays that are indexed by an Intdef:https://chromium-review.googlesource.com/c/chromium/src/+/1215202/14/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#b192
I agree that replacing simple enums that just represent integer constants with IntDefs is good if that reduces the binary size. I'm not sure if it is a good idea to replace more complex enums if this means that we have a number of arrays where any change has to preserve indexing and order. This seems to make it very easy to introduce bugs.
What do you think?
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAKAfQi37MCb-Wi-Sr%3D5QpgOp91dPXrzns8Bbe3BH8M_12QYQAw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CACnJMqokpZ3EAzC7W-G%3DVuMm53QhH7jTAfXh%2BsEwcRDgUeNrzw%40mail.gmail.com.
hmmm, Adrew said about compilation errors & we don't see them for months (we made mass move around Jul 2018 and currently I'm just moving single IntDef missed by accident or added in meantime).
... and I will want to summarize - even if some concrete very specific IntDef in very specific scenario make problem, can be always marked "don't convert" or "don't use source retention".