realm / realm-core

Core database component for the Realm Mobile Database SDKs
https://realm.io
Apache License 2.0
1.02k stars 158 forks source link

Optimize sorting of interned strings #7783

Closed sync-by-unito[bot] closed 2 months ago

sync-by-unito[bot] commented 4 months ago

First iteration of string interning will decompress all strings involved in sorting a query result. This is wasteful and especially so in the context where the sort is followed LIMIT.

This task is about using CompressedStringView to refer to strings in the sorting stage instead of using StringData which requires a decompressed string in memory.

sync-by-unito[bot] commented 4 months ago

➤ PM Bot commented:

Jira ticket: RCORE-2157