Group: V 2.32 release
Category: Linux related
we have experienced a long delay in accessing the
file system through Blender on our linux machines.
After investigating the problem we discovered the
delay occurred in finding the user's name based upon
their id. Specifically, in the creation of pwtable
by the function BLI_buildpwtable called by
BLI_adddirstrings in the file storage.c.
In our university system we have over 5000 users,
causing a delay of 5-10 seconds to create the
pwtable. This delay occurs every time we access the
file system. Our solution for this problem is given
below. Instead of creating a table of users we use
struct passwd *pwuser;
pwuser = getpwuid(files[num].s.st_uid);
I have also attached the diff file of the current cvs
version and our version (of storage.c). Thank You.