If it's known that objects are unique, there's no point in trying to deduplicate (which, as it is currently implemented, is a rather expensive process.)
In Python, a workaround is currently to simply issue a builder.vtables.clear() call after each object is added to the buffer.
It could be argued that deduplication is not a valid concern for the library at any rate since the application code can easily implement this itself, but that's a different matter.
If it's known that objects are unique, there's no point in trying to deduplicate (which, as it is currently implemented, is a rather expensive process.)
In Python, a workaround is currently to simply issue a
builder.vtables.clear()call after each object is added to the buffer.It could be argued that deduplication is not a valid concern for the library at any rate since the application code can easily implement this itself, but that's a different matter.