BTW, keep in mind that .listFiles() is not atomic on POSIX filesystems
(I don't know of others); if you have many files, and in sequence you
add A and *after that* you remove B, it's possible a single
.listFiles() will fail to list either file.
2011/2/9 Tristan Tarrant <tristan.tarrant(a)gmail.com>:
Ah, yes, just noticed :)
On Wed, Feb 9, 2011 at 12:08, Sanne Grinovero <sanne.grinovero(a)gmail.com>
wrote:
>
> 2011/2/9 Tristan Tarrant <tristan.tarrant(a)gmail.com>:
> > When you mention btree you mean to overcome potential performance
> > degradation caused by many files in one directory (at both the
> > filesystem
> > level and because the root.listFiles() is used) ?
>
> No, that's the filesystem's business. I guess Manik was referring to
> the internal structure of each file, they use "buckets" containing
> multiple values.
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev