Skip to content

UI stuck when applying define_user_type for a large number (~400k) #4549

Answered by CouleeApps
xfoxfu asked this question in API
Discussion options

You must be logged in to vote

Defining many types like this is a known slow operation, since every new definition needs to check and update references in all types in case anything existing has changed. There's an operation to do this faster in C++: DefineUserTypes (plural), although it does not look like the Rust API has a function for this yet. But the plural version of this function takes advantage of knowing all 400k types to update ahead of time, and only needs to run through the list once, instead of O(n) times. I can go add a rust binding for that API, since it seems like you need it.

One thing to be warned about is that the UI Types View gets rather slow if you have 400k types in your binary. We've seen this w…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@xfoxfu
Comment options

Comment options

You must be logged in to vote
1 reply
@CouleeApps
Comment options

Answer selected by plafosse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants