public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/107613] New: sphinx-build is slow for gccint manual
@ 2022-11-10 13:49 marxin at gcc dot gnu.org
  2022-11-10 13:58 ` [Bug other/107613] " marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-11-10 13:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107613

            Bug ID: 107613
           Summary: sphinx-build is slow for gccint manual
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: burnus at gcc dot gnu.org
  Target Milestone: ---

I noticed the manual build takes quite some time (~90 seconds):

$ /usr/bin/sphinx-build -b texinfo -d
/dev/shm/objdir/gcc/doc/gccint/info/doctrees  
/home/marxin/Programming/gcc/gcc/doc/gccint
/dev/shm/objdir/gcc/doc/gccint/info/texinfo -j auto
...
resolving references...

Apparently, when I look at the cProfile I get something like:

   Ordered by: cumulative time
   List reduced from 5417 to 60 due to restriction <60>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
...
        1    0.000    0.000   69.225   69.225
/usr/lib/python3.10/site-packages/sphinx/environment/__init__.py:623(resolve_references)
        1    0.000    0.000   69.225   69.225
/usr/lib/python3.10/site-packages/sphinx/environment/__init__.py:627(apply_post_transforms)
        1    0.000    0.000   69.076   69.076
/usr/lib/python3.10/site-packages/sphinx/transforms/__init__.py:75(apply_transforms)
        1    0.000    0.000   69.076   69.076
/usr/lib/python3.10/site-packages/docutils/transforms/__init__.py:159(apply_transforms)
...
     3440    1.101    0.000   55.550    0.016
/usr/lib/python3.10/site-packages/sphinx/domains/cpp.py:4978(direct_lookup)
  1561334    0.602    0.000   54.540    0.000
/usr/lib/python3.10/site-packages/sphinx/domains/cpp.py:4050(get_newest_id)


So 55 seconds are spent in cpp domain direct_lookup function.
We've got ~1000 C++ function defines and so let me report that to upstream.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/107613] sphinx-build is slow for gccint manual
  2022-11-10 13:49 [Bug other/107613] New: sphinx-build is slow for gccint manual marxin at gcc dot gnu.org
@ 2022-11-10 13:58 ` marxin at gcc dot gnu.org
  2022-11-10 13:59 ` marxin at gcc dot gnu.org
  2022-11-14  8:44 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-11-10 13:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107613

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Without cProfile, it's ~45 seconds.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/107613] sphinx-build is slow for gccint manual
  2022-11-10 13:49 [Bug other/107613] New: sphinx-build is slow for gccint manual marxin at gcc dot gnu.org
  2022-11-10 13:58 ` [Bug other/107613] " marxin at gcc dot gnu.org
@ 2022-11-10 13:59 ` marxin at gcc dot gnu.org
  2022-11-14  8:44 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-11-10 13:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107613

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-11-10

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Upstream issue:
https://github.com/sphinx-doc/sphinx/issues/10966

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/107613] sphinx-build is slow for gccint manual
  2022-11-10 13:49 [Bug other/107613] New: sphinx-build is slow for gccint manual marxin at gcc dot gnu.org
  2022-11-10 13:58 ` [Bug other/107613] " marxin at gcc dot gnu.org
  2022-11-10 13:59 ` marxin at gcc dot gnu.org
@ 2022-11-14  8:44 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-11-14  8:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107613

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
The Sphinx documentation has been reverted:
https://gcc.gnu.org/pipermail/gcc/2022-November/239983.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-14  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 13:49 [Bug other/107613] New: sphinx-build is slow for gccint manual marxin at gcc dot gnu.org
2022-11-10 13:58 ` [Bug other/107613] " marxin at gcc dot gnu.org
2022-11-10 13:59 ` marxin at gcc dot gnu.org
2022-11-14  8:44 ` marxin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).