排序应该是O(n log ),过滤应该是O(n)。为什么我首先要获得更好的排序性能,因为过滤会减少列表的大小,从而在将它传递到排序之前减少n?考虑这样的问题:文本(属性:)对包含"i“的单词进行过滤并排序。排序(过滤器(Xs))
$ python -m timeit -s 'text = "Grass skiing, skiing on grass is a method for training for
$filter=Id eq 'my-id-here' or Id eq 'other-id-here'过滤,但上面写着
ErrorInvalidProperty属性'Id‘不支持过滤。我知道无法通过调用https://graph.microsoft.com/v1.0/me/contacts/my-id-here进行查询,但我希望一次请求多个,以尽量减少往返。