On 25 October 2016 at 20:34, oscar6echo <[email protected]> wrote:

> This very long delay corresponds to the following line (obtained with
> --debug)
>
> 200 GET /api/contents?type=directory&_=1477423247957 (::1) 8.34ms
>
This may be a point where carefully using the new os.scandir() function
included in Python 3.5 could make a significant difference - that request
is listing all the files in a directory and then stat-ing each one multiple
times. That's exactly the kind of case that scandir is meant to speed up.

If we're willing to take on a new compiled dependency, we could use the
scandir backport module to do this before bumping the Python requirement:
https://pypi.python.org/pypi/scandir

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAOvn4qhsZ6YS_JT8hJEymmqvZCNS4WKvPJV4m3%3DDw9VCxzFQEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to