Speed up the subscriber

Better string handling, avoiding work where possible, new filter mode to
optimize the case when the subscriber is the only layer.

Bug: 293435349
Test: atest
Test: benchmark
Test: manually ran the sample and captured a trace
Change-Id: I05ede25daaadb109cffae2ad7658d4fab58b4b5d
3 files changed