Commit 5f21d860 authored by Kristof Szabados's avatar Kristof Szabados Committed by Gerrit Code Review
Browse files

Merge "Optimized function Type::can_have_coding"

parents 573a2dec 185f356d
......@@ -3509,6 +3509,14 @@ namespace Common {
return false;
// optimization: if it already has the encoding set, then the answer is true
for (size_t i = 0; i < coding_table.size(); ++i) {
if (coding_table[i]->built_in &&
coding_table[i]->built_in_coding == coding) {
return true;
switch (typetype) {
case T_SEQ_T:
case T_SEQ_A:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment