Slow segment runtime

My Mautic version is: v3.3.4
My PHP version is: 7.3.18
My Database type and version is: mariadb:10.5.10-focal (docker)

I have this segment “foobar-diff” that generates 2004 contacts.
Very simple filter:

It’s working but it’s very slow, consume a full cpu core for 10 minutes every time it runs (every 15mins)

The filter is defined as:
Includes Segments “Foo” with 13170 contacts
AND Excludes Segments “bar” with 11166 contacts

Maybe related to Slow segment updates? Try this

There’s any other way to make this run faster? maybe using tags instead of segments?