You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phileas-benchmark profiling shows that significant CPU time can be spent in the getFiltersForPolicy method (even with the recent addition of caching there). It might be worth considering a second level of caching where the result lists themselves don't have to be created each time?
The text was updated successfully, but these errors were encountered:
@jzonthemtn having revisted this with latest code I think this is just an artifact of how this benchmark works.
If you process very small strings (<32 bytes), hundreds of thousands of times per second, and do nothing else, then the overhead for getFiltersForPolicy can look significant like I showed originally. (and that's what I was doing at the time, microbenchmarking with mostly small strings)
Now that we have some real and non-microbenchmarky integrations, I did some analysis on a few more realistic workloads, and I didn't see one where getFiltersForPolicy was significant.
I think I was up pretty late and mis-interpreted this as an opportunity to optimize, cause who wouldn't want ~20%? 😀
phileas-benchmark profiling shows that significant CPU time can be spent in the
getFiltersForPolicy
method (even with the recent addition of caching there). It might be worth considering a second level of caching where the result lists themselves don't have to be created each time?The text was updated successfully, but these errors were encountered: