Skip to content

Efficiency Optimization Suggestions for Inconsistencies in a Large Number of Reference Name Properties #315

@RedFalsh

Description

@RedFalsh

Can the code starting from line 409 in the file property.cpp be improved to use the map method for property querying? When adding instance names (U1, U2 ... Un) to the references in the OAS file, the processing of such a large number of properties becomes very slow.

                   for (index = 0; index < state.property_value_array.count; index++) {
                        PropertyValue* it = state.property_value_array[index];
                        if (it->count == value->count &&
                            memcmp(it->bytes, value->bytes, it->count) == 0)
                            break;
                    }
                    if (index == state.property_value_array.count)
                        state.property_value_array.append(value);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions