Skip to content

Not using SEARCH_REFERENCE_SPACE_ALL results in significantly slower calls #1709

Description

@num3ric

Both getNumColorSpaces and getColorSpaceNameByIndex become much slower when using SEARCH_REFERENCE_SPACE_SCENE for example. For instance when using the ACES 1.2 config, PopulateOCIOMenus in ociodisplay goes from 0.74s to 8.1s on my windows workstation (see screenshot below).

This is primarily caused by the string comparison function: ToLower but also the new string allocation (going from getName()'s const char* to const std::string&
string_comparison

Replacing StringUtils::Compare with ::strcmp(...) == 0 cuts most of the cost down (0.9s instead of 8.1s). I think a faster method than the current approach would be needed in cases like these.

Activity

  1. added
    help wantedIssues that the TSC has decided are worth implementing, but don't currently have the dev resources.
    on Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that the TSC has decided are worth implementing, but don't currently have the dev resources.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions