![]() In doing this exercise, I discovered one strange thing: locally installed xonsh has both a site-packages/xonsh/parser_table.py and a site-packages/xonsh/parsers/parser_table.py. , located in directory xonsh/parsers, file name parser_table.py. Sample file name: p圓.8-local-xonsh-parsers-parser_table.pyįile name explained: Python 3.8, locally installed using pip install. I've created a gist with a heap of parser tables. ⬇️ Please click the □ reaction instead of leaving a +1 or □ comment This bug is preventing me from tinkering on xonsh for Fedora packaging I wish I had the patience of a saint :p For community ![]() This suggests to me that the parsing is-for one reason or another-immensely slow. Time.sleep(0.01) # block until the parser is ready Tree, input = self._parse_ctx_free(input, mode=mode, filename=filename)įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 21540, in _parse_ctx_freeįile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/parsers/base.py", line 496, in parse Node = builtins._xonsh_.execer.parse(node, ctx, *args, **kwargs)įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 21416, in parse Run_script_with_cache(filename, execer, ctx)įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 3218, in run_script_with_cacheįile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 3123, in run_compiled_codeįile "/var/home/carmenbianca/.xonshrc", line 10, in įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 18910, in _setitem_įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 7555, in isexpression Status = xonsh_script_run_control(rcfile, ctx, env, execer=execer, login=login)įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 17940, in xonsh_script_run_control Xonshrc_context(rcfiles=rc, execer=execer, ctx=ctx, env=env, login=login)įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 17893, in xonshrc_context Locally installed pytest tests/test_aliases.py: 167.02sįile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/bin/xonsh", line 8, in įile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 22413, in mainįile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 22349, in premainįile "/var/home/carmenbianca/.virtualenvs/xonsh3.10/lib64/python3.10/site-packages/xonsh/_amalgam_.py", line 22299, in start_services.PyPI-installed pytest tests/test_aliases.py: 0.90s.python -m xonsh run-tests.xsh test is slower by several orders of magnitude.īecause I don't want to wait for the entire suite to finish, here's a timing comparison for a single test file: ![]() inside of the Git source tree, I expect the same speed as when I installed xonsh via pip install xonsh.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |