We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of matching only exact matches:
cached: [2,1,3] = [1,2,3] input: [2,1,3] // <- hit input: [3,2,1] // <- no hit, even though the sorted array would look the same
we could match all inputs which contain all numbers of an already cached entry:
cached: [2,1,3] = [1,2,3] input: [2,1,3] // <- hit input: [3,2,1] // <- hit
this would improve the cache hit rate by a lot and would prevent the database to be flooded by entries with the same result.
The text was updated successfully, but these errors were encountered:
jwanner83
No branches or pull requests
Instead of matching only exact matches:
we could match all inputs which contain all numbers of an already cached entry:
this would improve the cache hit rate by a lot and would prevent the database to be flooded by entries with the same result.
The text was updated successfully, but these errors were encountered: