#7690: maxima stats too many files on startup, which is a performance issue
----------------------------------------------------------+-----------------
Reporter: was | Owner: tbd
Type: defect | Status: new
Priority: blocker | Milestone:
sage-4.3.1
Component: packages | Keywords:
Work_issues: | Author:
Upstream: Fixed upstream, in a later stable release. | Reviewer:
Merged: |
----------------------------------------------------------+-----------------
Changes (by was):
* upstream: N/A => Fixed upstream, in a later stable release.
Comment:
{{{
On Wed, Dec 16, 2009 at 6:14 AM, Robert Dodier <[email protected]>
wrote:
Hello,
We got a report about Maxima calling stat on a lot
of files when the program is launched.
Aside from all the files in the Maxima share directory,
which we expect Maxima to look at, stat was called
on a lot of other files as well (stuff outside the Maxima
directory structure).
An unfortunate mistake: DIRECTORY used stat() on all entries in a
directory, not only those that matched the mask. It was just a matter of
switching lines. Now things are better. Thanks a lot for reporting.
$ echo '(directory "/Users/jjgarcia/tmp/")(quit)' > foo.lsp; sudo dtrace
-n 'pid$target::safe_stat:entry { printf("%s\n",
copyinstr((uintptr_t)arg0)); }' -c "ecl -norc -load foo"
dtrace: description 'pid$target::safe_stat:entry ' matched 1 probe
;;; Loading #P"/Users/jjgarcia/foo.lsp"
dtrace: pid 39532 has exited
CPU ID FUNCTION:NAME
0 19180 safe_stat:entry jjgarcia
0 19180 safe_stat:entry tmp
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7690#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.