I want to initialize a large set but MapPSet::plusAll doesn't seem to be an efficient implementation.
If a set is initialized by 1 million elements, it would call MapPSet::plus 1 million times and leave 1 million persisted collection. However, I only need the last one.
Is there a way I can initialize the collection faster?
I want to initialize a large set but MapPSet::plusAll doesn't seem to be an efficient implementation.
If a set is initialized by 1 million elements, it would call MapPSet::plus 1 million times and leave 1 million persisted collection. However, I only need the last one.
Is there a way I can initialize the collection faster?
Thanks!