Am I abusing ordered set in some way in Swift Collections

I have an app I'm developing that has use case where OrderedSet comes in handy, but I'm finding it beachballs regularly after a few hours of running. I can sample the process and see the following:

The set should be small (~12 entries) but its possible I've got an error where I'm adding to it unbounded mistakenly, but haven't been able to find that and process memory usage is in an expected range.

I'm in the process of collecting data so I can replay the scenarios, but curious if anything in the stack trace appears out of the ordinary to anyone else.

Post the code related to this stack trace.

I don’t suppose you’ve checked the time complexity on whatever you’re doing?

Without seeing the algorithm you are using, it’s basically impossible to tell what’s happening.

Terms of Service

Privacy Policy

Cookie Policy