rdf4j icon indicating copy to clipboard operation
rdf4j copied to clipboard

Improve ConcurrentCleaner by introducing a buffer

Open hmottestad opened this issue 3 years ago • 0 comments

ConcurrentCleaner immediately delegates registration to one of the underlying Cleaner instances. Most of the use cases for the ConcurrentCleaner are to create a safety net for users who forget to close a query result. Short lived query results could just be stored in a buffer for a short grace period before registering it with one of the underlying Cleaner instances. The actual registration is fairly costly because it creates a PhantomReference.

hmottestad avatar Jun 07 '22 10:06 hmottestad