Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.4x Bug Tracker: Browse
[#977] Long delay in BLI_adddirstrings function
Date:
2004-02-10 00:12
Priority:
3
State:
Closed
Submitted by:
Ryan Hayward (
rhayward
)
Assigned to:
Kent Mein (sirdude)
Group:
V 2.32 release
Resolution:
Approved
Category:
Linux related
Summary:
Long delay in BLI_adddirstrings function
Detailed description
Since running version 2.28 to the current cvs version
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
the following.
struct passwd *pwuser;
pwuser = getpwuid(files[num].s.st_uid);
strcpy(files[num].owner, pwuser->pw_name);
I have also attached the diff file of the current cvs
version and our version (of storage.c). Thank You.
Followup
No Followups Have Been Posted
Attached Files:
Name
Date
Download
storage.diff
2004-02-10 00:12
Download
Changes:
Field
Old Value
Date
By
close_date
None
2004-03-29 20:40
sirdude
status_id
Open
2004-03-29 20:40
sirdude
Group
current CVS version
2004-03-24 16:36
ton
Resolution
New
2004-03-24 16:36
ton
assigned_to
none
2004-03-24 16:36
ton
File Added
155: storage.diff
2004-02-10 00:12
rhayward